Rushal Arora

Rushal Arora

  • NA
  • 112
  • 175.9k

How to set headers dynamically in griview

Aug 13 2013 8:21 AM
Q. How to set headers dynamically in griview?

 Actually i want to make a same gridview  as shown in below diagram in which i want to add headers dynamically (as many i want) i.e name, subject1-------------so on & it should come from database, like if i delete 2 headers from database so 2 header column should remove in the frontend , similarly i want to add "Name" dynamically in the same gridview as shown in below diagram.

for other pages in my same project i have made two tables:as shown in below diagram. please use the same if required for the above.

Subject column except header must be blank in gridview.



Answers (4)