Jump to content
Xtreme .Net Talk

Pharean

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Pharean

  1. I think you have a similar problem we faced here. Basicly you give a property of your class as valuemember, instead of the object itself, so the datagrid tries to save that "Item_ID"-property as an object. The trick is to change the value member to a property that actually gives the object itself, as described in the thread linked above. Again all credit goes to whoever wrote this.
  2. Solution found. To the second class (the one bound to the combobox) add this: And set the combobox's valuemember to Self Found the solution here. Credit goes to whoever wrote that. ^^
  3. Try this: Create a new winform and add a combobox in designer. Then go to code and add this: Is this what you mean?
  4. Any solution found? I currently have the exact same problem. Datagrid bound to a class containing a comboboxcell bound to an other class, wich is to be a property of the first class. When I try to validate my combobox it tries to either use the displaymember or the if set, the valuemember instead of the object itself. Resulting in an error stating string (or if valuemember is set Int32) cannot be converted to 'classname'.
×
×
  • Create New...