Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 04, 2012 12:04 AM by tvb2727
Participant
925 Points
1273 Posts
Mar 03, 2012 02:17 AM|LINK
Is it possible to have 2 Headings in a data grid in asp.net?
I want the MAIN column headings and then one above that to tell the user what the grid is about etc.
Vb.net code.
1612 Points
389 Posts
Mar 03, 2012 07:10 AM|LINK
http://www.codeproject.com/Articles/8661/Merge-DataGrid-Header
Star
10672 Points
2426 Posts
Mar 03, 2012 01:55 PM|LINK
Hi
If you don't want to repeat it. Why don't you go for a label with details placed just above the header of the gridView?
B
1760 Points
330 Posts
Mar 03, 2012 02:04 PM|LINK
Does the caption property doesn't fit your need?
Mar 03, 2012 02:08 PM|LINK
Nazm Does the caption property doesn't fit your need?
Ya You are right. I missed it.
Mar 03, 2012 08:30 PM|LINK
Is there a way I can make the font larger on the Caption? Or is the point of that property is to be small and just show the user what the grid is about?
Mar 03, 2012 10:06 PM|LINK
Try to inject your page with a style ..
Check this one.
<style type=\"text/css\">caption { font-family: Arial, sans-serif; color: white; font-size: 15px; font-weight: bold; padding: 3px 100px 3px 7px; text-align: left; white-space: nowrap; text-align: center; background-color: gold;}</style>
Mar 04, 2012 12:04 AM|LINK
Exactly what I wanted! Thanks
tvb2727
Participant
925 Points
1273 Posts
2 Headers in Data Grid in ASP.net
Mar 03, 2012 02:17 AM|LINK
Is it possible to have 2 Headings in a data grid in asp.net?
I want the MAIN column headings and then one above that to tell the user what the grid is about etc.
Vb.net code.
atulthummar
Participant
1612 Points
389 Posts
Re: 2 Headers in Data Grid in ASP.net
Mar 03, 2012 07:10 AM|LINK
http://www.codeproject.com/Articles/8661/Merge-DataGrid-Header
Atul T.
Please click "mark as answer" if this post helped you.
basheerkal
Star
10672 Points
2426 Posts
Re: 2 Headers in Data Grid in ASP.net
Mar 03, 2012 01:55 PM|LINK
Hi
If you don't want to repeat it. Why don't you go for a label with details placed just above the header of the gridView?
B
(Talk less..Work more)
Nazm
Participant
1760 Points
330 Posts
Re: 2 Headers in Data Grid in ASP.net
Mar 03, 2012 02:04 PM|LINK
Does the caption property doesn't fit your need?
basheerkal
Star
10672 Points
2426 Posts
Re: 2 Headers in Data Grid in ASP.net
Mar 03, 2012 02:08 PM|LINK
Ya You are right. I missed it.
B
(Talk less..Work more)
tvb2727
Participant
925 Points
1273 Posts
Re: 2 Headers in Data Grid in ASP.net
Mar 03, 2012 08:30 PM|LINK
Is there a way I can make the font larger on the Caption? Or is the point of that property is to be small and just show the user what the grid is about?
Nazm
Participant
1760 Points
330 Posts
Re: 2 Headers in Data Grid in ASP.net
Mar 03, 2012 10:06 PM|LINK
Try to inject your page with a style ..
Check this one.
<style type=\"text/css\">caption { font-family: Arial, sans-serif; color: white; font-size: 15px; font-weight: bold; padding: 3px 100px 3px 7px; text-align: left; white-space: nowrap; text-align: center; background-color: gold;}</style>tvb2727
Participant
925 Points
1273 Posts
Re: 2 Headers in Data Grid in ASP.net
Mar 04, 2012 12:04 AM|LINK
Nazm,
Exactly what I wanted! Thanks