예제 #1
0
        private void LoadData()
        {
            HiddenField1.Value = "View";
            var agentGroupInfo = monitorDb.GetAgentGroups(OrgId);

            grdGroups.DataSource = agentGroupInfo;
            grdGroups.DataBind();
            grdGroups.DataBind();
        }
예제 #2
0
        private void LoadAgentGroups()
        {
            ddlAgentGroups.Items.Clear();
            var info = new AgentGroups()
            {
                AgentGroupId   = -1,
                AgentGroupName = "- All -"
            };
            var agentGroupInfo = _monitorDb.GetAgentGroups(OrgId);

            agentGroupInfo.Insert(0, info);
            ddlAgentGroups.DataSource     = agentGroupInfo;
            ddlAgentGroups.DataValueField = "AgentGroupId";
            ddlAgentGroups.DataTextField  = "AgentGroupName";
            ddlAgentGroups.SelectedValue  = "-1";
            ddlAgentGroups.DataBind();
        }