示例#1
0
 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;
     }
 }
示例#2
0
 public void FillGrid()
 {
     dataGridBusiness.DataSource = employments.FillGrid(ref varCells, true).DataSource;
     dataGridBusiness.Focus();
 }