Seems like this should be simple but I can't get it to work.
I have an UltraGrid and in code I assign an ultracomboeditor as the editorcontrol for a cell. When the user selects an item I want to get that value before leaving the cell and put it into another cell in the active row. I've tried the CellChange and AfterCellListCloseUp events but at that point the active cell has no value. I have tried to access the cells editor control but it also has no value. How can I get the selected item?
Thanks
Hi Mark,
Just FYI - the Value property of a cell returns the underlying Value from the data source. So the grid doesn't update the underlying data source until the user leaves the cell. This is so that, if a user is in the middle of typing in a date, for example, they don't get an error every time they type a character.
The Text property of the cell returns the current editor text, so that's what you want here.
I figured it out. I needed to use the CellEventArgs as suchSub gridCriteria_CellChange(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.CellEventArgs) Handles gridCriteria.CellChange
and then I was able to use e.Cell.text to get the value