public FormPicExtensionClients(ClassDB db) { this.db = db; InitializeComponent(); dgvExtentionWorks.ColumnCount = 7; dgvExtentionWorks.Columns[0].HeaderCell.Value = "ID клиента"; dgvExtentionWorks.Columns[1].HeaderCell.Value = "Фамилия"; dgvExtentionWorks.Columns[2].HeaderCell.Value = "Имя"; dgvExtentionWorks.Columns[3].HeaderCell.Value = "Номер телефона"; dgvExtentionWorks.Columns[4].HeaderCell.Value = "Марка"; dgvExtentionWorks.Columns[5].HeaderCell.Value = "Модель"; dgvExtentionWorks.Columns[6].HeaderCell.Value = "Количество дней"; db.SearchExtentionWorksForPic(dgvExtentionWorks); }