0

I have a simple vb.net code which gets all the layer names present in the ArcMap and displays it in a vb form combobox. My question is if I select a layer name that is present in my combobox it should get me the column headings of attribute table of the selected layer. How can I achieve this?

Oto Kaláb
7,0253 gold badges33 silver badges54 bronze badges
asked Sep 1, 2017 at 11:39
1
  • Welcome to GIS SE, please take the community tour here: gis.stackexchange.com/tour. For coding question please provide your best code attempt within the question and note where you are stuck. This forum does not provide code it for me answers. Commented Sep 1, 2017 at 11:47

1 Answer 1

0

To access the fields of a layer you need to get a handle on the FeatureClass. It has a property called fields that returns an IFields object. There are worked samples in the API help file.

answered Sep 1, 2017 at 13:31
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.