请帮忙看一下这个往listview控件中读入数据库数据的语句错在哪儿?
SqlDataReader sqlread7 = mybase.getread("select sbbh,sbmc from sbxx");while (sqlread7.Read ())
{
this.listView1.Clear();
for(int i=0;i <listView1.Items.Count;i++)
{
this.listView1.Items[i].SubItems[0].Text = sqlread7["sbbh"].ToString();
this.listView1.Items[i].SubItems [1].Text =sqlread7 ["sbmc"].ToString ();
}
}
运行时,控件始终空白。