Creative2
Active member
Hi guys,
I am trying to fill a multicolumn listview by running a query, the problem I am having is that listview doesnt show first row items and subitems and if query just get one record then listview remains empty. I used following codes:
Do While Rdr.Read
Company = Rdr.GetValue(0)
Quote = Rdr.GetValue(1)
Platform = Rdr.GetValue(2)
QuoteDate = Rdr.GetDateTime(3)
PartNumber = Rdr.GetValue(4)
width = Rdr.GetValue(5)
lsvDetails.Items.Add(Company)
lsvDetails.Items(i).SubItems.Add(Quote)
lsvDetails.Items(i).SubItems.Add(Platform)
lsvDetails.Items(i).SubItems.Add(QuoteDate)
lsvDetails.Items(i).SubItems.Add(PartNumber)
lsvDetails.Items(i).SubItems.Add(width)
i += 1
Loop
Any suggestions to solve the problem??
I am trying to fill a multicolumn listview by running a query, the problem I am having is that listview doesnt show first row items and subitems and if query just get one record then listview remains empty. I used following codes:
Do While Rdr.Read
Company = Rdr.GetValue(0)
Quote = Rdr.GetValue(1)
Platform = Rdr.GetValue(2)
QuoteDate = Rdr.GetDateTime(3)
PartNumber = Rdr.GetValue(4)
width = Rdr.GetValue(5)
lsvDetails.Items.Add(Company)
lsvDetails.Items(i).SubItems.Add(Quote)
lsvDetails.Items(i).SubItems.Add(Platform)
lsvDetails.Items(i).SubItems.Add(QuoteDate)
lsvDetails.Items(i).SubItems.Add(PartNumber)
lsvDetails.Items(i).SubItems.Add(width)
i += 1
Loop
Any suggestions to solve the problem??