如果想在DataGridView控件中自动添加行号,您可以在DataGridView控件CellPainting事件中添加相关代码。以下就是相关代码: 如果想在DataGridView控件中自动添加行号,您可以在DataGridView控件Cel 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交