Click here to Skip to main content
15,915,163 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to show all the images stored in database on datagridview column.The images are stored in bytes and i want the real icon of the picture to be displayed on datagridviewcolumn

What I have tried:

try
{ SqlConnection connection = new SqlConnection(constring);
string query = "Select * from student1";
connection.Open();

SqlDataAdapter da = new SqlDataAdapter(query, constring);
DataTable dt = new DataTable();
da.Fill(dt);
dataGridView1.DataSource = dt;
DataGridViewColumn column = new DataGridViewColumn();

dataGridView1.RowTemplate.Height = 100;

connection.Close();
}
catch(Exception ex){}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900