Public Overloads Sub RemoveGroups( _ ByVal groupFieldNames As IEnumerable(Of String) _ )
public void RemoveGroups( IEnumerable<string> groupFieldNames )
Parameters
- groupFieldNames
- The array of group field names.
Public Overloads Sub RemoveGroups( _ ByVal groupFieldNames As IEnumerable(Of String) _ )
public void RemoveGroups( IEnumerable<string> groupFieldNames )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
| System.InvalidOperationException | The report does not have a valid report section. |
| System.ArgumentException | The group field names must be associated by a header and footer section. |
{
//Note: Call within QueuedTask.Run()
//Remove Groups
// The fields in the datasource used for the report
var listFields = new List<string> {
"STATE_NAME"
};
report.RemoveGroups(listFields);
//Add Group
report.AddGroup("STATE_NAME", true, true, "");
//Modify the Definition Query
var defQuery = "STATE_NAME LIKE 'C%'";
report.SetDefinitionQuery(defQuery);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)