//draw the row index public void dgvDrawHeaderNum(DataGridView dgvValue) { for (int index = 0; (index <= (dgvValue.Rows.Count - 1)); index++) { int number = index + 1; dgvValue.Rows[index].HeaderCell.Value = String.Format("{0}", number); } }
//draw the row index public void dgvDrawHeaderNum(DataGridView dgvValue) { for (int index = 0; (index <= (dgvValue.Rows.Count - 1)); index++) { int number = index + 1; dgvValue.Rows[index].HeaderCell.Value = String.Format("{0}", number); } }