文章分類/Infragistics
將 UltraGrid → DisplayLayout → Override → CellClickAction 屬性設置為 RowSelect 以在單元格點擊時啟用行選擇。
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect; // Cell Click 時選擇該 Row }
範例
KB2567_UltraGrid_SelectRowByCellClick
API參考
CellClickAction 屬性 (UltraGridOverride) https://jp.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.ultragridoverride~cellclickaction