(1) this.gridView2.IndicatorWidth = 30;//设置显示行号的列宽

(2) 设置动作grid

voidgridView2_CustomDrawRowIndicator(objectsender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
 	            if(e.Info.IsRowIndicator && e.RowHandle >= 0)
 	            {
 	                e.Info.DisplayText = (e.RowHandle + 1).ToString();
 	            }
 }

 

 
   

相关文章:

  • 2022-12-23
  • 2021-06-08
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2019-12-19
相关资源
相似解决方案