Problem with XtraGrid and ECO5
 
CapableObjects Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Problem with XtraGrid and ECO5 Expand / Collapse
Author
Message
Posted 2010-03-02 14:01:01
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2010-06-16 15:06:55
Posts: 8, Visits: 30
Hi
I've tried to follow http://edn.embarcadero.com/print/33816. But all I end up with is a locked combobox with the text: [EditValue is null]
I've made sure that the column expression is set to self.field and not self.field.AsString

Any ideas how to fix this?

--
Kind Regards
Michael
Post #4944
Posted 2010-03-02 14:11:32
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2010-07-12 15:25:48
Posts: 16, Visits: 158
It should be LookUpEdit and not ComboBox. DevExpress ComboBox does not support data binding. With LookUpEdit, you will need separate ExpressionHandle with Field.allInstances as Expression and set AddSelfColumn property to True. Then you need to set the ValueMember to "self" and DisplayMember to whatever attribute of the "Field" class. Then in XtraGrid's ExpressionHandle, you need to add column with self.Field in the column's collection. It should work.

Thanks & Regards,
Sachin
Post #4945
Posted 2010-03-02 14:48:13
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2010-06-16 15:06:55
Posts: 8, Visits: 30
Hi
Thx for the reply.
Combobox was a poor word choice It's ofc a locked LookUpEdit

I've done what you've suggested, but I'm still only getting the before mentioned text :/

--
Kind Regards
Michael
Post #4947
Posted 2010-03-03 10:06:00
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2010-06-16 15:06:55
Posts: 8, Visits: 30
Hi again
I just made a sample project that show my problem

--
Kind Regards
Michael


  Post Attachments 
XtraGridTest.zip (3 views, 140,03 KB)
Post #4954
Posted 2010-03-10 07:16:25
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2010-06-26 12:18:19
Posts: 18, Visits: 199
Hi Michael,

In your example the "colCategory" column is marked as readonly for some reason (colCategory.OptionsColumn.ReadOnly = true). That's why it's freezed.

I also removed the unneeded "self" column from the category lookup editor by doing so: I opened repositoryItemLookUpEdit1.Columns collection editor and pressed "Populate Columns" button. It added two columns from the data source (expression handle), then I simply removed the unneeded one ("self"). Note that when repositoryItemLookUpEdit1.Columns was empty it silently added all (two) columns from the data source.

See the modified project attached.

Regards,


--
Oleg Zhukov


  Post Attachments 
XtraGridTest.zip (2 views, 37,32 KB)
Post #4989
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: HansKarlsen, Jonas Hogstrom

Permissions Expand / Collapse

All times are GMT +1:00, Time now is 4:15

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0,172. 12 queries. Compression Disabled.