Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Populating ListView From shapefile

$
0
0
Hi,
I have a listview in my form I need to populate with the selected feature record, 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.

Code:

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
Attached Thumbnails
Click image for larger version

Name:	listview.jpg‎
Views:	N/A
Size:	17.8 KB
ID:	23897  

Viewing all articles
Browse latest Browse all 1374

Trending Articles