Assuming your DataSource is of type DataTable, you can just do this:
myGridView.DataSource as DataTable
More Related Contents:
- Sql: Incorrect syntax near ‘(‘ [closed]
- How to find Control in TemplateField of GridView?
- Create thumbnail image
- How to implement full row selecting in GridView without select button?
- how to find control in edit item template?
- GridView bound with Properties of nested class
- Get Row Index on Asp.net Rowcommand event
- How to hide a column (GridView) but still access its value?
- The data source does not support server-side data paging
- ASP.NET GridView RowIndex As CommandArgument
- Full postback triggered by LinkButton inside GridView inside UpdatePanel
- GridView with merged cells
- Change cell color on different values – Gridview
- How to add TemplateField programmatically
- Looping through GridView rows and Checking Checkbox Control
- Making an entire row clickable in a gridview
- Count total rows of gridview with pagination
- How to reorder columns in gridview dynamically
- Reset scroll position after Async postback – ASP.NET
- Pulling data from a webpage, parsing it for specific pieces, and displaying it
- How can I remove item from querystring in asp.net using c#?
- How to add cross domain support to WCF service
- Recursive TreeView in ASP.NET
- Index (zero based) must be greater than or equal to zero
- Get All Web Controls of a Specific Type on a Page
- asp.net web service using office 2010 COM
- Validating Recaptcha 2 (No CAPTCHA reCAPTCHA) in ASP.NET’s server side
- How to implement Security Protocols TLS 1.2 in .Net 3.5 framework
- Can gzip compression be selectively disabled in ASP.NET/IIS 7?
- Encrypt Query String including keys