Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 25th, 2004, 02:07 PM
Authorized User
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default .NET DataGrid Column Headers

I have a datagrid that I bind to a dataview at runtime. I know how to set the column's headertext property. What I'm wondering is if it's possible to have a column header span multiple rows? I would like to make a main header that is over two subheaders. I'll try to show below, and hopefully the formatting will hold up:

    Library Name
-------------------------
Book | Checked Out

"Library Name" would be the column that spans over the sub rows "Book" and "Checked Out".

 
Old October 25th, 2004, 03:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

You would have to make a custom DataGrid control to implement. Look on the web to see if there is a prebuilt one.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Table Column Headers elygp ASP.NET 1.0 and 1.1 Professional 2 May 8th, 2007 04:52 AM
Column Headers for Dynamic Table elygp ASP.NET 1.0 and 1.1 Basics 1 May 8th, 2007 02:43 AM
How to NOT print crosstab column headers chan Crystal Reports 0 August 11th, 2005 05:29 AM
Un edtitable Column in datagrid using ASP.Net sibajibasak XML 1 January 20th, 2005 03:09 AM
display DataGrid column headers vertically neethling ASP.NET 1.0 and 1.1 Professional 0 May 13th, 2004 10:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.