欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

dhtmlxGrid 添加行號(hào)詳細(xì)步驟

 更新時(shí)間:2013年03月06日 14:24:25   作者:  
接下來將介紹dhtmlxGrid 添加行號(hào)首先設(shè)置屬性(設(shè)置gridView屬性:gridView1 .IndicatorWidth=30)/再添加事件等等感興趣的你可以參考下
一、添加行號(hào),效果如下:


二、設(shè)置屬性
設(shè)置gridView屬性:gridView1 .IndicatorWidth=30;或是在屬性窗口中設(shè)置值。(可根據(jù)實(shí)際大小設(shè)置IndicatorWidth大?。?

三、添加事件
復(fù)制代碼 代碼如下:

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();
}
}

四、行號(hào)搞定。
當(dāng)然也可以設(shè)置行號(hào)列,使用數(shù)據(jù)源綁定行號(hào)值。

相關(guān)文章

最新評(píng)論