first you have to allow to draw a polygon graphic in to the map.
then you have to use this polygon graphic in order to select features from an another layer
finally the results form the query must be the data store for a dgrid object. Also you can use the Feature Table for this
Retrieving data ...