private void fillUpDataGridWithHPhonesItems(DataGridView dataReport, string nameTable) { dataReport.Rows.Clear(); dataReport.Columns.Clear(); var column1 = new DataGridViewColumn(); column1.HeaderText = "Название наушников"; column1.ReadOnly = true; column1.Name = "Name"; column1.CellTemplate = new DataGridViewTextBoxCell(); var column2 = new DataGridViewColumn(); column2.HeaderText = "Наличие микрофона"; column2.Name = "Microphone"; column2.CellTemplate = new DataGridViewTextBoxCell(); var column3 = new DataGridViewColumn(); column3.HeaderText = "Тип наушников"; column3.Name = "Constaction_type"; column3.CellTemplate = new DataGridViewTextBoxCell(); var column4 = new DataGridViewColumn(); column4.HeaderText = "Часы работы"; column4.Name = "Working_hours"; column4.CellTemplate = new DataGridViewTextBoxCell(); var column5 = new DataGridViewColumn(); column5.HeaderText = "Сопротивление"; column5.Name = "Resistance"; column5.CellTemplate = new DataGridViewTextBoxCell(); var column6 = new DataGridViewColumn(); column6.HeaderText = "Цена"; column6.Name = "Price"; column6.CellTemplate = new DataGridViewTextBoxCell(); var column7 = new DataGridViewColumn(); column7.HeaderText = "Кол-во"; column7.Name = "Quantity"; column7.CellTemplate = new DataGridViewTextBoxCell(); dataReport.Columns.Add(column1); dataReport.Columns.Add(column2); dataReport.Columns.Add(column3); dataReport.Columns.Add(column4); dataReport.Columns.Add(column5); dataReport.Columns.Add(column6); dataReport.Columns.Add(column7); workServerStore.completeHPhonesReport(dataReport, nameTable); }