private void LoadCategory() { try { BL_ItemCategoryMaster = new ItemCategoryMaster_BL(); BL_ItemCategoryMaster.I_CAT_CM_COMP_ID = Convert.ToInt32(Session["CompanyId"]); BL_ItemCategoryMaster.FillGrid(dgItemCategory); if (dgItemCategory.Rows.Count > 0) { dgItemCategory.Enabled = true; } } catch (Exception Ex) { CommonClasses.SendError("Item Category Master - View", "LoadItemCategory", Ex.Message); } }