Select to view content in your preferred language

Query task- What is best way to display field aliases in feature data grid

836
3
02-19-2013 02:26 AM
RahulMetangale1
Frequent Contributor
Hi All,

I want to know how to bind the field aliases to feature data grid while displaying the result of query task.

Requirement: Display the result of query task in feature data grid with data grid headers as field aliases.

Current approach:
I am looping through all graphics/features and adding alias name and its value to feature attributes.  I see that featureSet has a FieldAliases property but featureSet.features are bound to datagrid not the whole feature set.

If anyone has any suggestions please share it with me.

Thanks,
Rahul
0 Kudos
3 Replies
ChrisBradberry
Deactivated User
Hey,

Did you try adding the aliases to the feature class in the mxd before you published it?

Chris
0 Kudos
RahulMetangale1
Frequent Contributor
Hi Chris,

Thank you for your reply.

Aliases are present in the mxd. My issue is if I have to show the aliases in feature datagrid I have to loop through the graphic and have add additional key value pair-alias (key) and its value. Since I have to loop and add this to individual graphic process takes some time. I am looking for better way to achieve this.

Rahul
0 Kudos
BobWheeler
Frequent Contributor
Did you ever find a way to accomplish this task?  I am attempting to accomplish a similar task of returning alias names in a query especially when I have a join within the map document.
0 Kudos