文章分類/

Infragistics|Ultimate UI for Windows Forms|我想隱藏 UltraGrid 子層次結構中的列

尚無瀏覽量
2023-09-25 更新

infragistics log

如果要隱藏 UltraGrid 子層次結構中的列,請在 Columns of Bands[ 1 ]中將該列的 Hidden 屬性設為 True 。

類似地,對於子層次結構,可以在 Bands[ 2 ] 的 Columns of Bands[2]中設置;對於曾孫層次結構,可以在 Bands[3] 的 ColumnsofBands[ 3 ] 等中設置。

private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
    // 親階層の「Code」列を非表示にする。
    e.Layout.Bands[0].Columns["Code"].Hidden = true;

    // 子階層の「Code」列を非表示にする。
    e.Layout.Bands[1].Columns["Code"].Hidden = true;
}

快速跳轉目錄

✦ 群昱 AccessSoft 你的全面軟體解決方案 ✦

身為全球眾多知名軟體在台灣合作夥伴,歡迎諮詢你需要的軟體服務!

Picture of 軟體專家
軟體專家

群昱作為全球知名軟體推薦合作夥伴,致力於提供更多軟體解決方案給你!

更多軟體新知

立即詢價

請留下完整資訊,以便我們提供精確的服務內容給你。

詢價資訊