private void btnLoad_Click(object sender, EventArgs e) { DataSet ds = new DataSet(); objBO.QueryType = SQLQuery.ToString(); ds = objBAL.GetSearch(objBO); int val = ds.Tables[0].Rows.Count; MessageBox.Show("val is :"+val); if (ds.Tables[0].Rows.Count != 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { RadioButton RB = new RadioButton(); RB.Text = ds.Tables[0].Rows[i]["TestParameters"].ToString(); //RB.GroupName = "Database"; SampleListBox.Controls.Add(RB); SampleListBox.DisplayMember = "TestParameters"; } } else { //pnlReport.Visible = false; //gvBarcode.DataBind(); lblMsg.Text = "No records found..."; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)