Reputation: 917
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.
Upvotes: 3
Views: 12713
Reputation: 204
The way I do this (in VB.NET) is to declare the dropdown:
Private WithEvents dd As New UltraDropDown
Then set the DataSource
, ValueMember
, DisplayMember
, etc.
Then set the ValueList
property of your column to the dropdown:
Me.ultragrid.DisplayLayout.Bands(0).Columns("Name").ValueList = dd
Then on the RowSelected
event of the dropdown, call the Update()
method for the ActiveRow
of the UltraGrid:
Me.ultragrid.ActiveRow.Update()
Upvotes: 1
Reputation: 917
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
Upvotes: 7
Reputation: 11
similar post was submitted to Infragistics forums and was answered.
http://community.infragistics.com/forums/p/47347/253023.aspx#253023
Thanks.
Upvotes: 1