Populating ListView From shapefile

denzel

New member
Joined
May 1, 2013
Messages
1
Programming Experience
Beginner
Hi,
I have a listview in my form I need to populate it with the selected feature record from shapefile I am using ArcObject, my code fill all the field in one columns, I need to show only 5 columns in my listview. here is my code so far.
I just need the logic of filling the listview in vb.net from shapefile or table or access table it should be the same.

VB.NET:
Dim nCols As Integer

            nCols = pFeature.Fields.FieldCount

            For i = 2 To nCols - 1

                Me.Listsheet.Items.Add(pFeature.Fields.Field(i).Name)
                Me.Listsheet.Items.Add(pFeature.Value(i))


            Next
Regards
 

Attachments

  • listview.jpg
    listview.jpg
    17.8 KB · Views: 38
Back
Top