예제 #1
0
        public void BindCertificates(Guid CustID, ManageUserSVC.ManageUserClient Cl)
        {
            List <usp_GetCertificatesByCustomerIDResult> ListCertificates = new List <usp_GetCertificatesByCustomerIDResult>();

            ListCertificates = Cl.GetCertificateInfoByCustomerID(CustID);
            if (ListCertificates != null && ListCertificates.Count > 0)
            {
                grdCertificate.DataSource = ListCertificates;
                grdCertificate.DataBind();
                grdCertificate.UseAccessibleHeader    = true;
                grdCertificate.HeaderRow.TableSection = TableRowSection.TableHeader;
                TableCellCollection cells = grdCertificate.HeaderRow.Cells;
                cells[0].Attributes.Add("data-class", "expand");
                //cells[2].Attributes.Add("data-hide", "phone,tablet");
                cells[3].Attributes.Add("data-hide", "phone,tablet");
                //cells[4].Attributes.Add("data-hide", "phone,tablet");
                //cells[5].Attributes.Add("data-hide", "phone,tablet");
                lblCerty.Visible = false;
            }
            else
            {
                lblCerty.Visible = true;
                lblCerty.Text    = "No Certificates";
            }
        }