|
-
Mar 31st, 2007, 09:37 AM
#1
Thread Starter
Addicted Member
[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
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|