I have a gridview on an aspx page.
the gridview already has a datasource and is populated.
i am trying to get the data out of it like this when the user clicks a button:
DataTable dt = (DataTable)grdList.DataSource;
however it is showing this result as null!
i understand this to be an issue with postback/viewstate.
can someone please recommend to me a solution by which i can get data out of the gridview?>