devexpress 给GridView添加行号
先找到 此时间gridView1_CustomDrawRowIndicator
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(); } }