This sample provides an illustration of how to use the QueryBuilderControl. This add-in contains a dockPane which hosts the QueryBuilderControl.
The dockPane is used to view and modify the definition query for feature layers and standalone tables. Use the Expression property to determine the current and complete SQL expression.
Language: C#
Subject: Map Authoring
Contributor: ArcGIS Pro SDK Team <arcgisprosdk@esri.com>
Organization: Esri, https://www.esri.com
Date: 11/04/2024
ArcGIS Pro: 3.4
Visual Studio: 2022
.NET Target Framework: net8.0-windows
- Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the Releases page.
- In Visual Studio click the Build menu. Then select Build Solution.
- Launch the debugger to open ArcGIS Pro.
- Open an existing project.
- Click on the Add-In tab.
- Click on the Show DefinitionQueryDockPane button.
- The Definition Query dock pane will open up.
- Select a feature layer or standalone table in the TOC. The dock pane will display the definition query for the highlighted TOC item.
- Use the query builder control to update the definition query for the highlighted TOC item.
- Use the Apply button to write the updated definition query to the highlighted layer.
Home | API Reference | Requirements | Download | Samples