Bind GridView using Dynamic (Temporary) DataTable in ASP.Net


In this video tutorial, Mudassar Khan has explained, how to dynamically (programmatically) at runtime create a DataTable using C# or VB.Net and then bind it to GridView in ASP.Net.

First a dynamic DataTable object is created and its schema (Table structure and Columns) is defined programmatically. Once the columns are defined, then rows (records) are added to the dynamically generated DataTable.

Once the dynamic DataTable is populated with records, it is bound to an ASP.Net GridView control.



Download FREE API for Word, Excel and PDF in ASP.Net
 
ArticleId:583

© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.

18.118.30.3