I believe this should fix the problem:
while (dr.Read())
{
a = new ListViewItem();
a.Text = Convert.ToString(dr.GetValue(0));
for (int i=1; i < dr.FieldCount; i++)
{
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: gecka Search: Search took 0.06 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |