Hi,
I am using Ultrawingrid that is binded to a collection of IList. I have a class of Employees and one property of this class is City type. Now when i bind this collection with grid, City column show me of object type. I am using ultradropdown to list Cities and when i select any city it should show selected city in that column. How can i do that? currently we specify Value Member as CityID. Also when showing record it should show city over there.
What exactly is the DataType of the Employees.City field? If it's returning an object, then the grid cell will contain that object. There's no way for the grid to know that it needs to match up that field with an ID which is a property of the City object.
It sounds to me like your City field should probably be a CityID rather than a City object. Then you list would contain a list of CityIDs and City names.
Ok, let me explain with another example.
I have an ultrabindingcontrol. its datasource is binded to "Machine" class. Machine class has following properties
MachineID int
Description string
Product productClass
Now i am binding ultragrid's datasource property to ultrabindingcontrol object. when i bind, it converts the "Product" column's datatype to "productClass".
My requirement now from here is that, i want to use drop down of products linked with this column. When i shall select any product from drop down it should be listed over here.
Kindly suggest me how to do?