4
Answers

How to set headers dynamically in griview

Ask a question
Rushal Arora

Rushal Arora

11y
1.2k
1
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)