How to use
See Using the samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
- Open and build the solution in Visual Studio.
- Open ArcGIS Explorer, and open a map which contains some feature layers or use the 'Add Content' button to add shapefiles or geodatabase feature classes.
- Select the Add-Ins tab from the ArcGIS Explorer ribbon.
- Click the 'Layer Attributes' button to open the dockable window.
- Select a layer from the list and double-click on it to open a form displaying attribute data.
- Select a record in the DataGridView control and click the 'Zoom to feature' button.
- The 'Show graphic for feature' button should be enabled, click it to add a graphic to the map for this record.
- Click the 'Clear graphic for feature' button to remove the graphic for the selection.
- Add graphics for several rows, then use the 'Remove all table graphics' to clear all graphics for this table.
Download the files for all languages
LayerAttributesDockWindow.cs | This class defines the dockable window and displays a list of all the feature layers in the map. |
LayerAttributesForm.cs | This class defines a .NET windows form containing a DataGridView control, BindingNavigator component and a BindingSource component. The table binding, using the TableBindingAdapter, is performed in the form's constructor. |
LayerAttributesDockWindow.vb | This class defines the dockable window and displays a list of all the feature layers in the map. |
LayerAttributesForm.vb | This class defines a .NET windows form containing a DataGridView control, BindingNavigator component and a BindingSource component. The table binding, using the TableBindingAdapter, is performed in the form's constructor. |