Hi, I understand how to display a features attributes using the inspector class. However, I dont know how to display only a few attributes fields instead of ALL of them.
Can anyone point me in the right direction?
It does look like the Inspector class honors the 'Visible' setting (see Dan's reference above) and hides the attribute column if the 'Visible' checkbox is unchecked. I implemented an attribute control in my 'Show Attributes' dockpane and changed the 'Visible' checkbox state. Below the 'Visible' is off and you can see that the 'Description' column is not displayed:
Next i checked the 'visible' checkbox and the attribute column appeared:
just found this thread because I'm having the same issue. I want to create a custom Inspector in an AddIn where the user can edit only a subset of visible attributes from a feature layer. How can this be achieved without modifying the actual layer definition? Is there a way to modify a copy of the schema and pass it to the Inspector?
Did you ever figure this out? I know one can change the visibility at the layer level which changes the table as well. Did you determine if it's possible to only alter the feature inspector itself?