I have string collection that is used as datasource for combobox in gridcontrol''s cell.
After user manually entered new value into cell, this value is also added to string collection. But combobox dropdown list does not change.
I have binded string collection to gridcontrol cell once more, but it is have no effect.
ADAdministrator Syncfusion Team August 27, 2004 12:58 AM
In our grid\samples\celltypes\comboboxes I added a gridControl1.CurrentCellValidating event in Main.cs, and also made StringCollections items a member of the form (and not a local variable). With those changes, adding a new item to teh list in CurrentCellValidating seems to work for me. The item is added as you leave the cell of the of the editable combobox using a choice list.
I found a problem.
If in gridcontrol property EnterKeyBehavior is set to "None", after entering new item into cell, choicelist is not updated.
Only after moving to another cell''s choicelist will be updated.
Is it correct?
ADAdministrator Syncfusion Team August 27, 2004 03:48 AM
Yes. The default behavior is to save changes when you leave the cell. If you want the changes to be saved when the dropdown closes, you can handle the CurrentCellCloseDropDown event and call grid.CurrentCell.ConfirmChanges.