Infragistics UltraGrid: How to force a CellUpdate event after user selects from drop down
-
26-09-2019 - |
문제
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.
해결책
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
다른 팁
similar post was submitted to Infragistics forums and was answered.
http://community.infragistics.com/forums/p/47347/253023.aspx#253023
Thanks.
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()