public void FillOffice365Grid() { DataTable dtMailFiles = VSWebBL.DashboardBL.Office365BL.Ins.GetOffice365Mails(); dtMailFiles.PrimaryKey = new DataColumn[] { dtMailFiles.Columns["ID"] }; Office365Grid.DataSource = dtMailFiles; Office365Grid.DataBind(); ((GridViewDataColumn)Office365Grid.Columns["Server"]).GroupBy(); }
public void FillMailFilesfromSession() { DataTable dtMailFiles = new DataTable(); if (Session["Office365MailFiles"] != "" && Session["Office365MailFiles"] != null) { dtMailFiles = (DataTable)Session["Office365MailFiles"]; } Office365Grid.DataSource = dtMailFiles; Office365Grid.DataBind(); }
protected void btnCollapse_Click(object sender, EventArgs e) { if (btnCollapse.Text == "Collapse All Rows") { Office365Grid.CollapseAll(); btnCollapse.Image.Url = "~/images/icons/add.png"; btnCollapse.Text = "Expand All Rows"; } else { Office365Grid.ExpandAll(); btnCollapse.Image.Url = "~/images/icons/forbidden.png"; btnCollapse.Text = "Collapse All Rows"; } }
void SetItemCount() { int itemCount = (int)Office365Grid.GetTotalSummaryValue(Office365Grid.TotalSummary["Server"]); Office365Grid.SettingsPager.Summary.Text = "Page {0} of {1} (" + itemCount.ToString() + " items)"; }