How Do I Export Data From A Data Grid?
This lesson will show you how to get data out of a data grid.
The Handler For Populating Data Grid
This is the code that was used to populate the data grid. This shows you the keys that each record has (FirstName, LastName, Title and Image URL).
This is an example of how to get data out of a data grid. I begin by getting the dgData array and the dgIndexes. The indexes are a comma delimited list of the keys of the dgData in the proper order.
After you have the array and the ordered list of indexes you can loop through each record in the array. In this example I'm just wrapping the data in XML tags.