I am working on a C# project, and I have a DataGridview in which I am adding dynamically a new column with the following code.
DataGridViewColumn cl = new DataGridViewColumn();
cl.HeaderText = "Numbering";
grdCrew.Columns.Add(cl);
I want on every new row to put a number which is actually the number of the row, but i want to automatically assign the number.
Try this :
Update :
Also you can use these codes :