Dynamic Columns and Data Sources with .NET Grid View
I am working on a multi-purpose page and rather than adding multiple grids to the same page we wanted to use a single GridView to the page, and on Page_Init add the needed columns, and set the respective DataSourceID. So to do this, we have something like the following in the aspx, the codebehind in the Page_Init is very simple adding a...