Пример #1
0
        private void CustomerBind()
        {
            DataSet Data = new DataSet();
            ManageUserSVC.ManageUserClient Client = new ManageUserSVC.ManageUserClient();
            Data = Client.GetAllCustomers();

            //MKP Solved existing issue when grid have one customer than it deleted it is not automaic refresh the grid
            //if (Data != null && Data.Tables[0].Rows.Count > 0)
            {
                grdCustomers.DataSource = Data;
                grdCustomers.DataBind();
                grdCustomers.UseAccessibleHeader = true;
                grdCustomers.HeaderRow.TableSection = TableRowSection.TableHeader;
                TableCellCollection cells = grdCustomers.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");
            }
        }