public void DocumentBind()
        {
            DataSet Data = new DataSet();

            ManageUserSVC.ManageUserClient Client = new ManageUserSVC.ManageUserClient();
            Data             = Client.GetDocumentinfo();
            lblDocument.Text = "";
            if (Data != null && Data.Tables[0].Rows.Count > 0)
            {
                grddocumentdata.Visible    = true;
                grddocumentdata.DataSource = Data;
                grddocumentdata.DataBind();
                grddocumentdata.UseAccessibleHeader    = true;
                grddocumentdata.HeaderRow.TableSection = TableRowSection.TableHeader;
                TableCellCollection cells = grddocumentdata.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");
            }
            else
            {
                grddocumentdata.Visible = false;
                lblDocument.Text        = "No Files Found!";
            }
        }
Ejemplo n.º 2
0
        private void DocumentBind()
        {
            DataSet Data = new DataSet();

            ManageUserSVC.ManageUserClient Client = new ManageUserSVC.ManageUserClient();
            Data = Client.GetDocumentinfo();

            if (Data != null && Data.Tables[0].Rows.Count > 0)
            {
                grddocument.DataSource = Data;
                grddocument.DataBind();
                grddocument.UseAccessibleHeader    = true;
                grddocument.HeaderRow.TableSection = TableRowSection.TableHeader;
                TableCellCollection cells = grddocument.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");
                //cells[6].Attributes.Add("data-hide", "phone,tablet");
                //cells[7].Attributes.Add("data-hide", "phone,tablet");
            }
        }