public void fillUserTypeCombo() { DataTable dt = new DataTable(); dt = VSWebBL.ReportsBL.ReportsBL.Ins.GetMSUserCountTypes("AVG"); if (dt.Rows.Count > 0) { //UserTypeComboBox.SelectedIndex = 0; UserTypeComboBox.TextField = "StatName"; UserTypeComboBox.ValueField = "StatName"; UserTypeComboBox.DataSource = dt; UserTypeComboBox.DataBind(); } }
public void fillUserTypeCombo() { DataTable dt = new DataTable(); dt = VSWebBL.ReportsBL.ReportsBL.Ins.GetMSUserCountTypes(RptTypeRadioButtonList.SelectedItem.Value.ToString()); if (dt.Rows.Count > 0) { UserTypeComboBox.SelectedIndex = 0; UserTypeComboBox.TextField = "StatName"; UserTypeComboBox.ValueField = "StatName"; UserTypeComboBox.DataSource = dt; UserTypeComboBox.DataBind(); } }