private void LoadData() { HiddenField1.Value = "View"; var agentGroupInfo = monitorDb.GetAgentGroups(OrgId); grdGroups.DataSource = agentGroupInfo; grdGroups.DataBind(); grdGroups.DataBind(); }
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(); }