![]() |
|
|
|||||||
![]() |
ASP Net - Datagrid Verticle Header is this possible? How? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I would like to make my column header go verticle instead of horizontal. Is
this an easy task in asp.net. (Actually using Visual Studio.net 2003). thanks, Rog Roger |
|
|
|
|
#2 |
|
Posts: n/a
|
you would have to use DataList with RepeatDirection property set to
RepeatDirection.Vertical Roger wrote: > I would like to make my column header go verticle instead of horizontal. Is > this an easy task in asp.net. (Actually using Visual Studio.net 2003). > > thanks, > > Rog > > ashish |
|
|
|
#3 |
|
Posts: n/a
|
Well, this will work, but he won't have any of the fancy features from
the datagrid (sorting and such). But to put a datagrid upside down.... Guess that can't be done... Guillaume Davion |
|
|
|
#4 |
|
Posts: n/a
|
Roger wrote:
> I would like to make my column header go verticle instead of horizontal. Is > this an easy task in asp.net. (Actually using Visual Studio.net 2003). > > thanks, > > Rog > > You can use <br> tags in your header text and it will render, if I remember right. Or it should autowrap if the column width was set smaller than the width of the header text.... -- Craig Deelsnyder Microsoft MVP - ASP/ASP.NET Craig Deelsnyder |
|
|
|
#5 |
|
Posts: n/a
|
Roger wrote:
> I would like to make my column header go verticle instead of horizontal. Is > this an easy task in asp.net. (Actually using Visual Studio.net 2003). There is, as you've no doubt discovered, no way to do this with a simple setting. It sounds doable though. Assuming you want the first cell of each row to act as a "header", this might work: - Add a column to your DataTable to hold your rowheaders. - Run through your DataTable once, populating values for this column. - In the DataGrid, bind a column to your "header" column, and set its css class to your header style. - Turn the Header Visibility off in the DataGrid. Pretty simple really. Jason Kester Expat Software Consulting Services http://www.expatsoftware.com/ jasonkester |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get datagrid textbox value | kanchangorak | Software | 0 | 03-11-2009 11:11 AM |
| Loading 24,000 rows into C# .net Datagrid | Kagu | Software | 0 | 03-10-2009 06:51 PM |
| validating textbox inside datagrid | susan_1516 | Software | 0 | 11-09-2008 01:29 PM |
| ASP.NET VB Using ItemDataBound to create textbox in datagrid rows. | smi59550 | General Help Related Topics | 0 | 01-18-2008 07:42 PM |
| Disable ASP Button in a Datagrid | ChrisClayko | General Help Related Topics | 0 | 08-02-2006 03:08 AM |