其他分享
首页 > 其他分享> > DevExpress GridControl 显示行号、设置行号宽(转)

DevExpress GridControl 显示行号、设置行号宽(转)

作者:互联网

设置行号宽

gridView1.IndicatorWidth = 30;

显示行号

private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
{
if (e.Info.IsRowIndicator && e.RowHandle > -1)
{
e.Info.DisplayText = (e.RowHandle + 1).ToString();
}
}

标签:Info,DevExpress,行号,设置,RowHandle,gridView1,GridControl
来源: https://www.cnblogs.com/xihong2014/p/15169380.html