private void FillGrid()
        {
            ListEx <Community> communities = Community.GetList(PageFilter);
            int totalRecords = communities.TotalRecords;

            ToolsContainerControl.CheckForceFilterShow(totalRecords);
            PagingControl.SetTotalRecords(totalRecords);
            CommunitiesGrid.DataSource = communities;
            CommunitiesGrid.DataBind();
        }
Beispiel #2
0
        //1/06/2016 sowmya added for VSPLUS-2934
        private void FillCommunitiesGrid()
        {
            try
            {
                DataTable dt = new DataTable();
                dt = dt = VSWebBL.ReportsBL.ReportsBL.Ins.GetCommList("", selectedServer);
                if (dt.Rows.Count > 0)
                {
                    CommunitiesGrid.DataSource = dt;
                    CommunitiesGrid.Columns.Clear();
                    CommunitiesGrid.AutoGenerateColumns = true;

                    CommunitiesGrid.DataBind();
                    (CommunitiesGrid.Columns["Name"] as GridViewDataColumn).GroupBy();
                }
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw ex;
            }
            finally { }
        }