Infragistics UltraGrid: Column has a drop down with auto-complete. How can I force a CellUpdate when the user selects an item from the list and not have to wait for him to hit enter or click a different cell.
views:
39answers:
3
+1
A:
Hi, similar post was submitted to Infragistics forums and was answered.
http://community.infragistics.com/forums/p/47347/253023.aspx#253023
Thanks.
Taz
2010-10-01 17:25:28
Thats very perceptive, but it was not successfully answered yet. I need to find an event for selectionchangecommitted on the grid and then j can call update. What is that event?
skimania
2010-10-02 13:36:36
He finally answered it.
skimania
2010-10-07 21:20:51
A:
The way we do it is to declare the Dropdown
Private WithEvents dd As New UltraDropDown
Set the data source, value member, Display member etc.
Set the value list property of your column to the dd
"Me.ultragrid.DisplayLayout.Bands(0).Columns("Name").ValueList = dd"
Then on the "row selected" event of DD call the update event for active row of ultra grid.
"Me.ultragrid.ActiveRow.Update"
Brian Spencer
2010-10-06 19:45:27
+1
A:
And, the answer is:
grid.AfterCellListCloseUp += delegate { grid.UpdateData(); };
Much thanks to Mike Saltzman, the Infragistics Grid Guru:
http://community.infragistics.com/forums/p/47347/253023.aspx#253023
skimania
2010-10-07 21:21:58