HI again,
I would like to know how i would use a loop for the following code, thanks for read this.
LV1.Columns.Add(ds.Tables(0).Columns(0).ColumnName, 25)
LV1.Columns.Add(ds.Tables(0).Columns(1).ColumnName, 75)
LV1.Columns.Add(ds.Tables(0).Columns(2).ColumnName, 75)
LV1.Columns.Add(ds.Tables(0).Columns(3).ColumnName)
LV1.Columns.Add(ds.Tables(0).Columns(4).ColumnName)
LV1.Columns.Add(ds.Tables(0).Columns(5).ColumnName, 75)
LV1.Columns.Add(ds.Tables(0).Columns(6).ColumnName, 75)
LV1.Columns.Add(ds.Tables(0).Columns(7).ColumnName, 75)
LV1.Columns.Add(ds.Tables(0).Columns(8).ColumnName, 75)
LVitem.Text = dt.Rows(0).Item(0).ToString
LVitem.SubItems.Add(dt.Rows(0).Item(1).ToString)
LVitem.SubItems.Add(dt.Rows(0).Item(2).ToString)
LVitem.SubItems.Add(dt.Rows(0).Item(3).ToString)
LVitem.SubItems.Add(dt.Rows(0).Item(4).ToString)
LVitem.SubItems.Add(dt.Rows(0).Item(5).ToString)
LVitem.SubItems.Add(dt.Rows(0).Item(6).ToString)
LVitem.SubItems.Add(dt.Rows(0).Item(7).ToString)
LVitem.SubItems.Add(dt.Rows(0).Item(8).ToString)
i was thinking along the lines of something like this
For i As Integer = 0 To dt.Rows.Count - 1
next
not sure what to put in the middle.