title: Dynamically Copy/Create the Full Structure of an Asp.NET Grid View
body: <p>Ok so I have a GridView created on my .aspx page and it has the exact structure I want. How make copies of it in the code-behind? Copies with the exact same structure of TemplateFields and ItemTemplates?</p>
  
  <p>If copying is not possible, how can I reproduce the GridView in the code-behind? Add the TemplateFields, ItemTemplates, etc.</p>
  
  <p>Why am I doing it this way? I need a separate, identical GridView for each column of a database. I've been looking around and only found one resource for making the grid dynamically (see the resource below). Given my time constraints, I'd like to simply copy the one I already have.</p>
  
  <p>Resource: <a href="http://bytes.com/topic/asp-net/answers/624380-gridview-generated-programmatically" rel="nofollow">http://bytes.com/topic/asp-net/answers/624380-gridview-generated-programmatically</a></p>