Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1369
Binding mode problem with objects
posted

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. 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     Hi,

    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.

Children