Exemplo n.º 1
0
 private void dgvListSubCategory_SelectionChanged(object sender, EventArgs e)
 {
     _CategoryBusiness = new CategoryBusiness();
     if (currentAction == (int)ACTION.NONE)
     {
         var index = dgvListSubCategory.CurrentCell.RowIndex;
         if (index > -1)
         {
             txtName.Text = dgvListSubCategory.Rows[index].Cells[2].Value.ToString().Trim();
             cbNameCategory.SelectedValue = _CategoryBusiness.SelectIdCategory(dgvListSubCategory.Rows[index].Cells[1].Value.ToString().Trim());
         }
     }
 }