public void RemoveGroups( IEnumerable<string> groupFieldNames )
Public Overloads Sub RemoveGroups( _ ByVal groupFieldNames As IEnumerable(Of String) _ )
Parameters
- groupFieldNames
- The array of group field names.
public void RemoveGroups( IEnumerable<string> groupFieldNames )
Public Overloads Sub RemoveGroups( _ ByVal groupFieldNames As IEnumerable(Of String) _ )
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, Windows 10