Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
In my web application i need to show the gridview like following method,
-----------------------------------------------------------------------
Column1     Column2|                     Column3                      |
-------------------|--------------------------------------------------|
                   |             SubCol1    |        Subcol2          |
-------------------|------------------------|-------------------------|
                   |Col1  |  Col2  |  Col3  | Col1  |  Col2  |  Col3  |
-------------------|------------------------|-------------------------|


How can i to do this at runtime?
Posted
Updated 4-Aug-15 21:18pm
v3
Comments
Sergey Alexandrovich Kryukov 5-Aug-15 2:51am    
Grid view? Which one? Full type name, please?
—SA
Member 10556393 5-Aug-15 2:57am    
Hi Sergey,
Asp.net gridview,C# coding.

1 solution

Have a look at excellent CP article: GridView column header merging in ASP.NET[^]

 
Share this answer
 
Comments
Member 10556393 5-Aug-15 3:48am    
Hi Maciej,
Thanks for the reply and for the link. But my output is just different, One main header, under that one sub main header, under that sub header like this i need.
Maciej Los 5-Aug-15 3:53am    
Please, carefully read related article. An author shows a way how to create subheaders.
Member 10556393 5-Aug-15 3:54am    
Thanks.....
Maciej Los 5-Aug-15 6:15am    
You're very welcome ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900