public void fillUnitList()
 {
     try
     {
         List <Unit_Master> _state = Unit_MasterCollection.GetAll();
         chkUnitList.DataSource     = _state;
         chkUnitList.DataTextField  = "Name";
         chkUnitList.DataValueField = "Code";
         chkUnitList.DataBind();
     }
     catch (Exception ex)
     {
         string script = "<script>alert('" + ex.Message + "');</script>";
     }
 }
 public void grid()
 {
     gdvNotice.DataSource = Unit_MasterCollection.GetAll();
     gdvNotice.DataBind();
 }