public void FillGrid()
    {
        try
        {
            DS = Obj_UserMaster.GetUserRightTable(out StrError);
            if (DS.Tables.Count > 0 && DS.Tables[0].Rows.Count > 0)
            {
                GridUserRight.DataSource = DS.Tables[0];
                GridUserRight.DataBind();

                GridUser.DataSource = DS.Tables[1];
                GridUser.DataBind();
            }
            else
            {
                GridUserRight.DataSource = null;
                GridUserRight.DataBind();

                GridUser.DataSource = null;
                GridUser.DataBind();
            }
            //Obj_User = null;
            // DS = null;
        }
        catch (Exception ex) { throw new Exception(ex.Message); }
    }
示例#2
0
 public void FillGrid()
 {
     try
     {
         Ds = obj_DMUserMaster.GetUserRightTable(out StrError);
         if (Ds.Tables.Count > 0 && Ds.Tables[0].Rows.Count > 0)
         {
             GridUserRight.DataSource = Ds.Tables[0];
             GridUserRight.DataBind();
         }
         else
         {
             GridUserRight.DataSource = null;
             GridUserRight.DataBind();
         }
     }
     catch (Exception ex) { throw new Exception(ex.Message); }
 }