Devexpress GridControl控件显示行号
设置GridControl的ShowIndicator属性为True
调整IndicatorWidth为合适的宽度
选择GridView的CustomDrawRowIndicator事件
添加以下代码
if (e.Info.IsRowIndicator)
{
e.Info.DisplayText = e.RowHandle.ToString ();
}
设置GridControl的ShowIndicator属性为True
调整IndicatorWidth为合适的宽度
选择GridView的CustomDrawRowIndicator事件
添加以下代码
if (e.Info.IsRowIndicator)
{
e.Info.DisplayText = e.RowHandle.ToString ();
}