Auto generate row number in DataGridView in windows application
How to Auto generate row number in DataGridView in windows application
foreach (DataGridViewRow row in dataGridView1.Rows) row.Cells["Index"].Value = (row.Index + 1).ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)