Asp.Net 4.0 gridview to show Display attribute value
<p>I have been displaying list of some class in gridview with AutoGenerateColumns = true.</p>

<p>The class has nearly 70+ properties.</p>

<p>Now I need to change the column header of the gridview. For example, class has property called "ProductName" but in the gridview I just need to show "Name".</p>

<p>One way is to remove AutoGenerateColumns and denote everything as boundfield. But it is too much of manual coding... rather a data entry!</p>

<p>I was thinking to use Display attribute of the class property to be shown as the header column in gridview. </p>

<pre><code>[Display(Name="Product")] public string ProdcutName { get; set;}
</code></pre>

<p>Is there any way to use Display attribute in Gridview?</p>

<p>Also suggest something else also... </p>
