示例#1
0
 private void DisplayRecords()
 {
     dataTable = _stockInManager.DisplayRecords();
     stockInDataGridView.DataSource = dataTable;
     if (dataTable.Rows.Count == 0)
     {
         MessageBox.Show("No any records");
     }
     foreach (DataGridViewRow row in stockInDataGridView.Rows)
     {
         row.Cells["SL"].Value     = (row.Index + 1).ToString();
         row.Cells["Action"].Value = Convert.ToString("Edit");
     }
 }