public void Clear()
 {
     TxtDescription.Text   = "";
     TxtMainCat.Text       = "";
     DgvMainCat.DataSource = null;
     DgvMainCat.DataBind();
 }
 protected void Button2_Click(object sender, EventArgs e)
 {
     try {
         DataTable dt = catObj.GetAllMainCategory();
         DgvMainCat.DataSource = dt;
         DgvMainCat.DataBind();
     }catch (Exception ex)
     {
         LblMessage.Text = ex.Message.ToString();
     }
 }