Exemple #1
0
 private void Display()
 {
     companyDataGridView.DataSource = _companyManager.Display();
     foreach (DataGridViewRow row in companyDataGridView.Rows)
     {
         row.Cells["SL"].Value = (row.Index + 1).ToString();
     }
 }
Exemple #2
0
 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;
 }