Hi,
i done how to display image from database in datagridview but problem is its not showing complete image so please help to display full image along with data in datagridview here is my code
SqlConnection con = newSqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=c:\users\vinayak\documents\visual studio 2010\Projects\studentregistery\student.mdf;Integrated Security=True;User Instance=True");
SqlDataAdapter sda = newSqlDataAdapter();
DataTable dt = newDataTable();
DataSet ds = newDataSet();
SqlCommand cmd = newSqlCommand();
sda.SelectCommand =
newSqlCommand("select name,sem,branch,usn from student where reg=" + textBox1.Text, con);
sda.Fill(dt);
/* DataGridViewImageColumn imgcolumn = new DataGridViewImageColumn();
imgcolumn.DataPropertyName = "picture";
imgcolumn.Width = 150;
imgcolumn.HeaderText = "imgogstud";
imgcolumn.ReadOnly = true;
imgcolumn.ImageLayout = DataGridViewImageCellLayout.Normal;
dataGridView1.Columns.Add(imgcolumn);*/
publishimg();
dataGridView1.DataSource = dt;
con.Open();
sda.SelectCommand.ExecuteNonQuery();
con.Close();
v