How change column names randomly in gridview?

Posted by James123 on Stack Overflow See other posts from Stack Overflow or by James123
Published on 2010-06-11T04:15:03Z Indexed on 2010/06/11 4:23 UTC
Read the original article Hit count: 297

Filed under:
|
|
|

I am struggling to show different views of gridview with database values. Here is my requirement.

Database Table: alt text

I need to show one drop downlist with three values 1,2,3. If user selects 3 i Need to show a grid like below

alt text

Age,AnnualSales and Assortment are names which are coming dynamically from database.

High,Medium and Core all are values

Here my question is I need to show same attribute names.

Like If the name changes from "Assortment" to "Location" I need to show it in different page index .

In page index 2 i need to show like below.

alt text

Please help with solution

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET