Infragistics UltraGridのチェックボックスのチェック変更で発生するイベントはどれですか?

StackOverflow https://stackoverflow.com/questions/314357

質問

WinFormsアプリケーションでInfragistics UltraGridを使用しています。
「変更の確認」で発生するイベントInfragistics UltraGridのチェックボックスの機能

役に立ちましたか?

解決

チェックボックスのAfterUpdateイベントは、使用するものです。

ただし、トリガーできない場合は、これも追加してみてください:

Private Sub YourGridcontrol_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles YourGridcontrol.MouseDown
    YourGridcontrol.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode)
End Sub

Private Sub YourGridcontrol_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles YourGridcontrol.MouseUp
    YourGridcontrol.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.ExitEditMode)
End Sub

デフォルトでは、チェックボックスを切り替えるだけでは更新がトリガーされないようです。編集モードを開始/終了することにより、AfterUpdateは必要に応じて機能します。

UPDATE:または、Vincentが提案したように、CellChangeイベントでPerformActionを実行しても動作するはずです。要旨は同じです。

他のヒント

CellChange イベントを使用して、 UltraGrid.PerformAction(UltraGridAction.ExitEditMode)イベントを発生させます。これにより、 AfterCellUpdate イベントが発生します。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top