title: How to retrive all types of data from sqlserver in datagridview on button click?
body: <p>I want to know how I can retrieve image's from sqlserver in DataGridView on a button click. I can show other types of data with the following code and at image column it is showing error. So how can I show all types of data column-wise in DataGridView on button click including image in c#.</p>
  
  <pre><code>private void ViewButton_Click(object sender, EventArgs e)
  {
      SqlConnection connection = new SqlConnection("Data Source=DESKTOP-FQBMN3R\\SQLEXPRESS;Initial Catalog=StudentDB; Integrated Security=true");
      connection.Open();
      SqlDataAdapter sd = new SqlDataAdapter("select *  from tbl_student_info", connection);
  
      DataSet ds = new DataSet();
      sd.Fill(ds, "tbl_student_info");
      ViewDataGridView.DataSource = ds.Tables[0];
  
      connection.Close();
  }
  </code></pre>