Devexpress GridControl控件显示行号

设置GridControl的ShowIndicator属性为True

调整IndicatorWidth为合适的宽度

选择GridView的CustomDrawRowIndicator事件

添加以下代码

if (e.Info.IsRowIndicator)
{
    e.Info.DisplayText = e.RowHandle.ToString ();
} 

  

posted on 2016-11-18 10:24  Joey.ZJ  阅读(162)  评论(0编辑  收藏  举报