private void dgv_Catagory_DoubleClick(object sender, EventArgs e) { DECatagory catagory = new DECatagory(); catagory.Catagory_Id = Convert.ToInt32(dgv_Catagory.CurrentRow.Cells[1].Value); BLLCatagory obj_BLLCatagory = new BLLCatagory(); bool bool_Result = obj_BLLCatagory.LoadCatagoryRow(catagory); if (bool_Result == true) { DisplayData(catagory); } else { MessageBox.Show("Record is not found."); } catagory = null; obj_BLLCatagory = null; }