Skip to content

Gridview Dynamic Header

mary jean ligas

mary jean ligas

Asked Mar 11, 2013, 10:51 PM EDT3 answers
Share
LinkedInX
Hello Everyone..Please help me on this.. I have a Table Naming Dim_Role

Role      Sort
DH         1
SM         2
TMM       3


I want to bind it in gridview like this output

DH     SM     TMM
1         2       3

the values are now become header dynamically, is it posible??please help me on this i need it so  much..T_T

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Vishal Gilbile
    0
    Hello Friend,
                    what you can do is make use of pivot clause while retrieving the data from the database and bind it on the gridview.


    With Regards,
    Vishal Gilbile.
    0
  • mary jean ligas
    0
    can you please send me an example on how to do pivot clause in sql?thanks
    0
  • mary jean ligas
    0
    I want a dynamic pivot..how to do that..
    0