[RESOLVED] loading listview
This is so frustrating, I must be missing something too simple. But I have been on this for hours and cannot load a simple listview... I have just migrated to .Net so it is a little different... THis is what I have and nothing is showing, not even the column headers..... I know there is data there...
Please help.. Thanks so much:sick:
ST_ind = pFeature.Fields.FindField(ST_ID)
Offset_ind = pFeature.Fields.FindField(OFFSET)
lsvStations.View = View.Details
lsvStations.Columns.Add("Station ID", 100, HorizontalAlignment.Left)
lsvStations.Columns.Add("Offset", 200, HorizontalAlignment.Left)
lsvStations.Clear()
Do While Not (pFeature Is Nothing)
Dim SSItem1 As New ListViewItem(pFeature.Value(ST_ind).ToString())
SSItem1.SubItems.Add(pFeature.Value(ST_ind).ToString())
SSItem1.SubItems.Add(pFeature.Value(Offset_ind).ToString())
lsvStations.Items.AddRange(New ListViewItem() {SSItem1})
pFeature = pFCursor.NextFeature
Loop