Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Gridlines in Datagrid problem!

Reply
Thread Tools

Gridlines in Datagrid problem!

 
 
Lars Netzel
Guest
Posts: n/a
 
      12-19-2004
Hi!

How can I get ONLY vertical Gridlines WITHOUT a border around the whole
grid?

I have "GridLines=vertical" and "BorderStyle=None" and still I have a border
around the whole grid!

/Lars


 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2ViTWF0cml4?=
Guest
Posts: n/a
 
      12-19-2004
Use stylesheet.

"Lars Netzel" wrote:

> Hi!
>
> How can I get ONLY vertical Gridlines WITHOUT a border around the whole
> grid?
>
> I have "GridLines=vertical" and "BorderStyle=None" and still I have a border
> around the whole grid!
>
> /Lars
>
>
>

 
Reply With Quote
 
 
 
 
Lars Netzel
Guest
Posts: n/a
 
      12-20-2004
How do you to that?

How do you set a Style sheet that will keep track of the different lines in
a datagrid? Everything is rendered as different HTML Tables from ASP.NET.
Sure you can decide top, bottom, right and left lines in a TD but since you
are not really building the table yourself.. how do you control this?

/Lars


"WebMatrix" <> wrote in message
news:06570292-7F7C-4210-B210-...
> Use stylesheet.
>
> "Lars Netzel" wrote:
>
>> Hi!
>>
>> How can I get ONLY vertical Gridlines WITHOUT a border around the whole
>> grid?
>>
>> I have "GridLines=vertical" and "BorderStyle=None" and still I have a
>> border
>> around the whole grid!
>>
>> /Lars
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?V2ViTWF0cml4?=
Guest
Posts: n/a
 
      12-20-2004

Each Datagrid element has CssClass property, including grid itself,
headerstyle and itemstyle. Create style for each with appropriate borders
settings and assign styles to each element. If you dont want border around
grid, don't define any borders. But for itemstyle and headerstyle define left
and right border.

For example:
..MyStyle
{
border-right: #696969 1px solid;
}


"Lars Netzel" wrote:

> How do you to that?
>
> How do you set a Style sheet that will keep track of the different lines in
> a datagrid? Everything is rendered as different HTML Tables from ASP.NET.
> Sure you can decide top, bottom, right and left lines in a TD but since you
> are not really building the table yourself.. how do you control this?
>
> /Lars
>
>
> "WebMatrix" <> wrote in message
> news:06570292-7F7C-4210-B210-...
> > Use stylesheet.
> >
> > "Lars Netzel" wrote:
> >
> >> Hi!
> >>
> >> How can I get ONLY vertical Gridlines WITHOUT a border around the whole
> >> grid?
> >>
> >> I have "GridLines=vertical" and "BorderStyle=None" and still I have a
> >> border
> >> around the whole grid!
> >>
> >> /Lars
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid as grid lines when Gridlines set to none. Rotsey ASP .Net 2 12-03-2007 04:53 AM
how to change colors of gridlines in a datagrid jkwasson@nospam.nospam ASP .Net Datagrid Control 0 10-20-2006 06:41 PM
gridlines vertical do not work Beffmans ASP .Net 2 07-15-2005 09:06 AM
Datagrid export to Excel losing gridlines LouV ASP .Net 0 11-25-2004 04:27 PM
Hiding Gridlines of a word document Shreyas Madwanna ASP .Net 0 01-21-2004 03:04 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57