Windows forms using c#
i need to display the image in datagridview which is retreving from database in windows forms using c#..
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
saurabh mittal152 reputationPosted Feb 24, 2014, 5:01 AM EST
stntax:
Sarath KumarRank #3,637 · 402 reputationPosted Feb 24, 2014, 5:32 AM EST
//see this code.. void Load_GridData() { conn.Open(); // open the connection SqlDataAdapter Sqa = new SqlDataAdapter("select * from picture", conn); DataSet ds = new DataSet(); Sqa.Fill(ds); // fill the dataset GridView1.DataSource = ds; // give data to GridView GridView1.DataBind(); conn.Close(); }