Hello folks,
I have a featurelayer that I'm editing with a FeatureDataGrid, but I want to change what one of the values says in a ReadOnlyColumn.
More specifically, I'm editing data in a feature class for streets. Howevr, the name of the street is kept in a separate table and are joined when needed based on a value. This value is the column that I'm trying to replace. It shows up just fine in the FeatureDataGrid, but I want to show the name.
I know that a FeatureService can't work with joined tables so I've had to be clever to get the associated names. Here's what my process is.
1) Use Draw functions to select features in a dynamic layer on the map (using a MapService).
2) Query the MapService based on the geometry of the DrawGraphics.
3) Resulting FeatureSet is used to get a collection of ObjectIDs which are then used to create a WHERE clause for the FeatureLayer. (I also get a unique collection of Name Values)
4) FeatureLayer is updated, selected Streets appear on the map and their information in the FeatureDataGrid.
5) I use the collection of Name Values to get the full name of the Selected Streets.
#Here's my Problem#
6) I want to change the Text in the FeatureDataGrid to display Name of the Street instead of the NameValue. I know that I can add extra columns that are not bound to the Street Information, so i don't have to actually change any values. Let's say I add a TextColumn to the beginning of my Columns Collection, and it had placeholder text inside it. How do I change the text to say "Main Street" for each item in my FeatureDataGrid that represents a portion of Main Street?
Loading_Row event has not been helpful to me, but I suppose I've just missed how to do it properly. Any help or suggestions would be great.
Thanks,
Will