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?

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.
    – artwork21
    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.

0

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.