ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMTableView Class / ShowOnlyContingentValueFields Property
Example

In This Topic
    ShowOnlyContingentValueFields Property
    In This Topic
    Gets or sets a value indicating whether the table field visibility settings should be overridden to only show fields that are part of one or more contingent value field groups.
    Syntax
    Public Property ShowOnlyContingentValueFields As Boolean
    public bool ShowOnlyContingentValueFields {get; set;}
    Example
    Display Table pane for Map Member
    {
      mapMember = MapView.Active.Map.GetLayersAsFlattenedList().OfType<MapMember>().FirstOrDefault();
      //Gets or creates the CIMMapTableView for a MapMember.
      var mapTableView = FrameworkApplication.Panes.GetMapTableView(mapMember);
      //Configure the table view
      mapTableView.DisplaySubtypeDomainDescriptions = false;
      mapTableView.SelectionMode = false;
      mapTableView.ShowOnlyContingentValueFields = true;
      mapTableView.HighlightInvalidContingentValueFields = true;
      //Open the table pane using the configured tableView. If a table pane is already open it will be activated.
      //You must be on the UI thread to call this function.
      var tablePane = FrameworkApplication.Panes.OpenTablePane(mapTableView);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also