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();
            }
        }

有时候行号宽度不够 还需要设置: gridView1.IndicatorWidth = 75;

相关文章:

  • 2021-11-08
  • 2022-01-11
  • 2022-12-23
  • 2021-09-28
  • 2022-02-23
  • 2021-06-25
  • 2021-08-26
  • 2021-11-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案