public void BindData() { string s = "select Qry_Text,Qry_Sol from tblqrydetails where Qry_Sol is not null and Qry_sol not like ''"; ds = b.Ex_DRL(s); DataGrid2.DataSource = ds; DataGrid2.DataBind(); }
public void BindData(string s) { try { ds = b.Ex_DRL(s); if (ds != null) { GridView1.DataSource = ds; GridView1.DataBind(); } else { Label1.Text = " No Records"; } } catch (Exception ex) { throw new ArgumentException(ex.Message); } }
protected void LinkButton1_Click(object sender, EventArgs e) { ds = b.Ex_DRL(s); GridView1.DataSource = ds; GridView1.DataBind(); }