اینکه فیلدهای اصلی رو تغییر بدید اصلا فکر خوبی نیست
برای اینکار باید جدولتو ردیف گزاری کنی
کد
کد:
Using b As SolidBrush = New SolidBrush(DGV1.RowHeadersDefaultCellStyle.ForeColor)
e.Graphics.DrawString("رديف", DGV1.DefaultCellStyle.Font, b, DGV1.Size.Width - 40, 5)
e.Graphics.DrawString(e.RowIndex + 1, DGV1.DefaultCellStyle.Font, b, e.RowBounds.Location.X + DGV1.Size.Width - 40, e.RowBounds.Location.Y)
End Using
اینکار باعث میشه dataGrid شما دارای ردیف درستی باشه بدون دستکاری فیلدهای بانک اطلاعاتی