How do you populate a DataGrid with the attributes of features in a FeatureLayer? I've searched high and low and can't find the answer to this question, which is frustrating because it seems so fundamental. Apparently, you can set the dataProvider property of the DataGrid to the attributes property of a FeatureSet object. However, I can't get a reference to a FeatureSet object containing all the features in a FeatureLayer. I've tried using the featureCollection property of the FeatureLayer object, but that is always null. I've seen ways to do it using queries and selections, but I want to put the attributes of all the features from the FeatureLayer in the DataGrid.
Thanks,
Doug