예제 #1
0
 private void BindDGUsers()
 {
     if (ViewState["CompanyUid"] != null)
     {
         DataView  dv         = null;
         Guid      companyUid = (Guid)ViewState["CompanyUid"];
         DataTable dt         = CManage.GetUsersDataTable(companyUid);
         if (dt != null)
         {
             dv      = dt.DefaultView;
             dv.Sort = "LastName, FirstName, Email";
         }
         dgCompanyUser.DataSource = dv;
         dgCompanyUser.DataBind();
     }
 }