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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 20, 2013, 3:49 AM EDT
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
Nayeem MansooriRank #3,979 · 374 reputationPosted Aug 20, 2013, 5:49 AM EDT
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 HussainRank #423 · 5.9K reputationPosted Aug 20, 2013, 7:17 AM EDT
Regards,
Iftikar