dhtmlxGrid 添加行號詳細步驟
來源:懂視網
責編:小采
時間:2020-11-27 22:41:38
dhtmlxGrid 添加行號詳細步驟
dhtmlxGrid 添加行號詳細步驟:一、添加行號,效果如下: 二、設置屬性 設置gridView屬性:gridView1 .IndicatorWidth=30;或是在屬性窗口中設置值。(可根據實際大小設置IndicatorWidth大小) 三、添加事件 代碼如下:private void gridView1_CustomDrawRo
導讀dhtmlxGrid 添加行號詳細步驟:一、添加行號,效果如下: 二、設置屬性 設置gridView屬性:gridView1 .IndicatorWidth=30;或是在屬性窗口中設置值。(可根據實際大小設置IndicatorWidth大?。?三、添加事件 代碼如下:private void gridView1_CustomDrawRo

一、添加行號,效果如下:

二、設置屬性
設置gridView屬性:gridView1 .IndicatorWidth=30;或是在屬性窗口中設置值。(可根據實際大小設置IndicatorWidth大小)
三、添加事件
代碼如下:
private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
{
if (e.Info.IsRowIndicator && e.RowHandle >= 0)
{
e.Info.DisplayText =( e.RowHandle+1).ToString();
}
}
四、行號搞定。
當然也可以設置行號列,使用數據源綁定行號值。
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
dhtmlxGrid 添加行號詳細步驟
dhtmlxGrid 添加行號詳細步驟:一、添加行號,效果如下: 二、設置屬性 設置gridView屬性:gridView1 .IndicatorWidth=30;或是在屬性窗口中設置值。(可根據實際大小設置IndicatorWidth大小) 三、添加事件 代碼如下:private void gridView1_CustomDrawRo