ADAdministrator Syncfusion Team June 14, 2005 09:44 AM
If you bind your derived class to a windows forms datagrid, can you edit things there and save the changes?
If you can upload a sample project showing what youare doing, we can try to debug it here.
BRBriceJune 14, 2005 04:46 PM
Yes with a windows datagrid it works fine, I have a comboBox as cell type, and I want the selected string from the dropdown to be stores in a class (that implement IBinding and derives from collection) i set the class name as datasource and one of the string property as mapping name of the column, in the cell style properties i''ve set the value member to be that same string property (from the collection class), when i select a value from the combobox it appears as the cell value until i click on a new cell or an existing one. i will try to make a short sample for you.
BRBriceJune 15, 2005 06:42 AM
Here is a sample, while making the sample I realized the problem is due to the fact that the binding to the class is not working and there is no call for addnew when a new cell is insert.
see attached zip
ADAdministrator Syncfusion Team June 15, 2005 07:26 AM
In your sample, you have not set a MappingName for this.gridBoundColumn1. You need to teel the grid what property in your class1 you want this column mapped to. Without setting this property, the grid does not know where to store the result of your combobox selection.
Also note, since you did not set this.gridBoundColumn1.ValueMember, the result of the selction will be the object from the dataset which is a datarowview object. So, if you do not set a ValueMember, then the grid will expect class1 to have a property that is a DataRowView object in order for things to match up.