dev 显示行号

设置表格  indicatorWidth 属性 设置行号表格的宽度

 

 

 

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

posted @ 2016-06-27 14:47  吃葡萄不吐葡萄脾  阅读(229)  评论(0编辑  收藏  举报