Freeze field ArcGIS Pro SDK

862
5
03-24-2021 12:00 PM
MarvisKisakye1
Occasional Contributor

Is there a way to freeze attribute table fields programmatically in ArcGIS Pro SDK? Ideally one would open a feature layer or table and have the fields be pre frozen to always appear to the left side of the attribute table.  @UmaHarano @Wolf 

Tags (1)
0 Kudos
5 Replies
Wolf
by Esri Regular Contributor
Esri Regular Contributor

What do you mean with frozen?

0 Kudos
MarvisKisakye1
Occasional Contributor

@Wolf In Pro, when you open an attribute table, you can freeze some fields so that they always appear at the start of the table. I've updated the question with more details.

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Hi Marvis,

 I talked to the developers and we don't currently have the capability to freeze fields programmatically in the TableControls (Pro out-of-box and the API TableControl) nor are there any workarounds.  The developers will add this feature as an enhancement after the 2.8 release.   

KisakyeM
New Contributor III

Do you know if this enhancement was added to 2.9 and beyond and if so, what is the name of the method? @Wolf @UmaHarano @CharlesMacleod 

0 Kudos
UmaHarano
Esri Regular Contributor

Hi

Here is the method: SetFrozenFieldsAsync Method (TableView) 

Sets the specified fields to be frozen in the table view. Frozen fields are promoted to be the first visible fields in the table view and stay visible as the table view is scrolled horizontally. A divider bar is placed between the frozen fields and the remaining fields in the table. The specified list of fields are added to any existing fields that are already frozen.