private void Display() { companyDataGridView.DataSource = _companyManager.Display(); foreach (DataGridViewRow row in companyDataGridView.Rows) { row.Cells["SL"].Value = (row.Index + 1).ToString(); } }
private void Display() { companydataGridView.DataSource = companyManager.Display(company); foreach (DataGridViewRow row in companydataGridView.Rows) { row.Cells["SL"].Value = (row.Index + 1).ToString(); } companydataGridView.RowHeadersVisible = false; }