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?

  • 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 Sep 1 '17 at 11:47

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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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