Exemplo n.º 1
0
 private void WarehouseInformationForm_Load(object sender, EventArgs e)
 {
     SetEditColumnIntoDataGrid();                                         // Insert Edeit column into datagridview
     dataGridWarehouseInfomation.AutoGenerateColumns = true;              // create gridview as auto generate columns.
     WarehouseInformationController.GetData(dataGridWarehouseInfomation); // call data industrial into grid.
     dataGridWarehouseInfomation.SelectedRows[0].Selected = true;
     dataGridWarehouseInfomation.AutoResizeColumns();                     //Auto resize columns
 }
Exemplo n.º 2
0
 // Reload data When Add/Edit form was closed
 public void ReloadDataGridView()
 {
     WarehouseInformationController.GetData(dataGridWarehouseInfomation); // call data industrial into grid.
 }