I am using this syntax where the dr.getValue(6) is the blob image from mysql.
public void LoadRecords()
{
metroGrid1.Rows.Clear();
cm = new MySqlCommand("Select * from tblaccnt", cn);
dr = cm.ExecuteReader();
while (dr.Read())
{
metroGrid1.Rows.Add(dr.GetValue(0), dr.GetValue(1), dr.GetValue(2), dr.GetValue(3), dr.GetValue(4), dr.GetValue(5), dr.GetValue(6));
}
dr.Close();
}
But I always end up with Parameter is not valid Exception. Thanks in advance for the help