Infragistics UltraGrid:列にはオートコンプリート付きのドロップダウンがあります。ユーザーがリストからアイテムを選択し、Enterキーを押すか、別のセルをクリックするのを待つ必要がない場合、どうすればCellUpdateを強制できますか。
12068 次
3 に答える
7
そして、答えは次のとおりです。
grid.AfterCellListCloseUp += delegate { grid.UpdateData(); };
Infragistics Grid Guru の Mike Saltzman に感謝します。
http://community.infragistics.com/forums/p/47347/253023.aspx#253023
于 2010-10-07T21:21:58.283 に答える
1
同様の投稿が Infragistics フォーラムに送信され、回答がありました。
http://community.infragistics.com/forums/p/47347/253023.aspx#253023
ありがとう。
于 2010-10-01T17:25:28.007 に答える
1
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()
于 2010-10-06T19:45:27.290 に答える