11 Replies Latest reply on Feb 21, 2012 3:28 AM by Bleroux

    Populate a XAML combo box with field names from a dataset?

    jhouck86
      Hello everyone,

      This is all using Silverlight 4 with the REST API and C# code behind.

      I'm trying to populate a combobox with all the field names from a dataset so I can capture the user's selection and pass it into a query that they have constructed on their own.

      I can't figure out how to get an array or list (or anything) with the field names that I can then iteratively add to the combobox.Items.  I've got some queries set up in my other project but they're querying against rows (features) and not just against the field names. I don't want to hard code any field names because I want the box to populate dynamically depending on which dataset they want to query.

      Am I going about this wrong or just missing something obvious? Thanks for your help.

      Jon