Hi...
In ArcGIS Pro, I can rigth-click a FeatureClass the .gdb file and select Open Table in its context menu.
When I do this, the attribute window shows the list of rows, and no FeatureLayer gets placed into the map.
This is what I want!!!
Is there a way to do this programatically? I know there is, because the application, a program, does it.
When I try to add the FeatureClass item to my custom table, Visual Studio tells me the featureClass is not a map item.
When I tried to turn the FeatureClass into a StandaloneTable,(which still puts it in the map), I get an error during creation.(co-pilot says it's because my FeatureClass is in a Dataset called __WorkContainer__ and StandaloneTable creation does not trust workspaces that look temporary. Is this really the case?
My preference is to do with my FeatureClass what the application does, but within my custom attribute table.
The table is the one from the community examples.
You’re trying to use Map-specific tools for a non-Map task. If you want a table that lives only in your custom pane, treat it like a standard database connection. Open the Geodatabase, open the Table, and bind that data directly to your UI. Leave the "Map Items" for the Map.
Are you trying to display this in a standard WPF DataGrid, or hook into the existing ArcGIS Pro Table Control?
I'm trying to hook it into the TableControl.
So... I start with FeatureClasses in a list in a custom catalog.
I want to select a featureClass and click the show attributes button to se the table.
I want this because the initial feature classes hold described locations that are true featurelayers etc.
The only reason the initial rows are Featureclasses and not database tables is because they originate from shape files.
I am porting an Arc Map plugin from before 2011, and everything starts as shape file and ended up in a database afer all of the manipuations were done.
Our job scope is to make it work, as is, with slight improvements, and with the newest Arc Pro and Arc Enterprise server. Year two is when we are allowed to revamp the plugin.
With Arc Map, IFeatureLayers did not have to rest in the map in order to be displayed in the feature table. They could be created in memory, like in Javascript now.
So... I have a FeatureClass, which is a table, and, when I right-click the very feature table in my .gdb and select show table, it happens...
This is why I suspect it can happen in another circumstance.
You are suggesting I create my own datagrid and forget about the communy's sample Attibute table, aren't you?
Right now, I am putting all alyers that don't belong in the finished product in a group layer called __workspace__ and I dont' show them. The just show in the Contents pane.
I suppose this will work for now.
Thanks...
Yes, you can use the TableControl to display the content from a Catalog item.
Take a look at this ProGuide which walks you through the code and explains the process.
https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-TableControl