Infragistics|Ultimate UI Windows Form|單擊 UltraGrid 單元格上的選擇行

infragistics log


將 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


延伸閱讀
aa71435723的大頭照
Winston

Eggplant DAI 自動化測試專家。

留言