示例#1
0
 public void FillOffice365GroupsgridFromSession()
 {
     //MSoma
     if (Session["Office365Groupsgrid"] != "" && Session["Office365Groupsgrid"] != null)
     {
         Office365Groupsgrid.DataSource = (DataTable)Session["Office365Groupsgrid"];
         Office365Groupsgrid.DataBind();
     }
 }
示例#2
0
        public void FillGroupsGrid()
        {
            DataTable dt = VSWebBL.DashboardBL.Office365BL.Ins.Groupgrid();

            if (dt.Rows.Count > 0)
            {
                Office365Groupsgrid.DataSource = dt;
                Session["Office365Groupsgrid"] = dt;
                Office365Groupsgrid.DataBind();
                Office365Groupsgrid.GroupSummarySortInfo.Clear();
                ((GridViewDataColumn)Office365Groupsgrid.Columns["GroupName"]).GroupBy();
                ASPxGroupSummarySortInfo sortInfo = new ASPxGroupSummarySortInfo();
                sortInfo.SortOrder   = DevExpress.Data.ColumnSortOrder.Ascending;
                sortInfo.SummaryItem = Office365Groupsgrid.GroupSummary["GroupName", DevExpress.Data.SummaryItemType.Count];
                sortInfo.GroupColumn = "GroupName";
                Office365Groupsgrid.GroupSummarySortInfo.AddRange(sortInfo);
            }
        }