public void FillGrid() { dataGridBusiness.DataSource = employments.FillGrid(ref varCells).DataSource; if (dataGridBusiness[0, 0].Value.ToString() != Texts.emptyEmpFile) { dataGridBusiness.ReadOnly = false; dataGridBusiness.CurrentCell = dataGridBusiness[0, 0]; dataGridBusiness.Focus(); } else { dataGridBusiness.ReadOnly = true; } }
public void FillGrid() { dataGridBusiness.DataSource = employments.FillGrid(ref varCells, true).DataSource; dataGridBusiness.Focus(); }