Пример #1
0
        public void ResetMaintenancesDataGrid(MaintenanceType typeOfMaintenance)
        {
            dgvMaintenances.DataSource = Maintenance.GetMaintenances(typeOfMaintenance);

            dgvMaintenances.Columns["ID"].Width          = 30;
            dgvMaintenances.Columns["OrderID"].Width     = 80;
            dgvMaintenances.Columns["ProductCode"].Width = 100;
            dgvMaintenances.Columns["Duration"].Width    = 70;
            dgvMaintenances.Columns["StartDateTimeOfOperation"].HeaderText = "StartDate";
        }