How do I access the entire dataset/datatable in a gridview? I am using data binding just a SqlDataSource (SqlDataSource1) configured to execute a stored proc passing some values from controls on a asp.net page. The GridView control has it's DataSourceID set to SqlDataSource1. I know how to use the DataSource property when manually writing the code, however I am modifying an exisiting application so I have some limitations without refactoring a ton of code.
On the click event of a button I need to access the data in the current grid (I am trying to avoid running the query again if at all possible).
Make sense? Any thoughts?