int i = 0;//intialises i=0 while(QbReader1.Read())//reading the values { radGridView1.Rows.AddNew();//should add new row //string iStr = QbReader1["CompanyName"].ToString(); radGridView1.Rows[i].Cells[0].Value = QbReader1["CompanyName"].ToString(); radGridView1.Rows[i].Cells[1].Value = Image.FromStream(stream); radGridView1.Rows[i].Cells[2].Value = QbReader1["State"].ToString(); radGridView1.Rows[i].Cells[3].Value = QbReader1["Country"].ToString(); radGridView1.Rows[i].Cells[4].Value = QbReader1["WebsiteAddress"].ToString(); i++; } QbReader1.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)