Hi,
One column of my grid has the style ColumnStyle.DropDownList and it works well apart from one situation. If a user clicks on one of these cells and picks a value in the dropdownlist but does not click on another cell, the value is not commited. So when I call this.ultraGrid1.Rows[ i ].Cells[ PICKLIST_COL_NO ].Value null is returned rather than the value the user selected.
Is there any way to have the selected value commited as soon as the user selects the item in the picklist so that our code can get his selected value without requiring him to click on another cell and so stop editing that cell?
Thanks
Andy
If you'd like a more detailed explaination of the difference between the Text and Value properties of a cell and when the data is committed, you might want to take a look at this thread: datachanged property of editable cell. - Infragistics Community
This will work if the user select an item from the list:
private
void Grid_AfterCellListCloseUp(object sender, CellEventArgs e)
{
grid.PerformAction(
UltraGridAction.ExitEditMode);
}
but if the user is typing (if you allow this), I think you need to use CellChange.