One.aspx --> In this page, Gridview1 displaying three column
Two.aspx --> In this page, Gridview2 displaying three column
Three.aspx -->
In this page i want to bind the gridview3 with name and subject, how to do it ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 20, 2013, 11:17 AM
Regards,
Iftikar
Nayeem MansooriPosted Aug 20, 2013, 9:49 AM
public void Bind()
{
da = new SqlDataAdapter("select n.Name,s.Subject from Name n
inner join Subject s on n.ID = s.ID", "Data Source=HCL-PC;Initial Catalog=Test;Integrated Security=True");
ds = new DataSet();
da.Fill(ds);
GridView3.DataSource = ds;
GridView3.DataBind();
}
Iftikar HussainPosted Aug 20, 2013, 7:49 AM
How you are binding gridview1 and gridview2? Can you share your code?
in your gridview3 you need to bring two column from sql query and bind it
Regards,
Iftikar