Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Datagrid Borders

Reply
Thread Tools

Datagrid Borders

 
 
Martin
Guest
Posts: n/a
 
      12-15-2003
Hi

Why wont the datagrid accept the borderstyle's i have in my css ?.

What i want is that the headers border-bottom has a width of 5px and the
rest of the borders in the datagrid should be 1 px.

I have other style's too and they work but all border styles are
disregarded.


 
Reply With Quote
 
 
 
 
Coleen
Guest
Posts: n/a
 
      12-23-2003
I had this problem too, and the only way I found to get the datagrid to
accept my borders was to create the COMPLETE borders in my style sheet:
..border2
{
border-top-color: Black;
border-top-style:solid;
border-top-width:thin;
border-bottom-color: Black;
border-bottom-style:solid;
border-bottom-width:thin;
border-left-color: Black;
border-left-style:solid;
border-left-width:thin;
border-right-color: Black;
border-right-style:solid;
border-right-width:thin;
background-color: #006699;
Color: white;
}
I tried just using border: [style-solid],[width-thin],[color-white]; but
it would not work, plus I needed to make the background color different, so
this way I now can call either this border style or any other I have defined
in my Style sheet. Hope this helps...

Coleen

"Martin" <> wrote in message
news:...
> Hi
>
> Why wont the datagrid accept the borderstyle's i have in my css ?.
>
> What i want is that the headers border-bottom has a width of 5px and the
> rest of the borders in the datagrid should be 1 px.
>
> I have other style's too and they work but all border styles are
> disregarded.
>
>



 
Reply With Quote
 
 
 
 
Inga
Guest
Posts: n/a
 
      01-06-2004
I have problem with datagrid borders in other browsers than IE. E.g in Opera
it looks terrible: left cell border is black and I can't change it.
Does anyone know how can I change it to color I need?

Thanx,
Inga (Lithuania)


"Coleen" <> wrote in message
news:...
> I had this problem too, and the only way I found to get the datagrid to
> accept my borders was to create the COMPLETE borders in my style sheet:
> .border2
> {
> border-top-color: Black;
> border-top-style:solid;
> border-top-width:thin;
> border-bottom-color: Black;
> border-bottom-style:solid;
> border-bottom-width:thin;
> border-left-color: Black;
> border-left-style:solid;
> border-left-width:thin;
> border-right-color: Black;
> border-right-style:solid;
> border-right-width:thin;
> background-color: #006699;
> Color: white;
> }
> I tried just using border: [style-solid],[width-thin],[color-white]; but
> it would not work, plus I needed to make the background color different,

so
> this way I now can call either this border style or any other I have

defined
> in my Style sheet. Hope this helps...
>
> Coleen
>
> "Martin" <> wrote in message
> news:...
> > Hi
> >
> > Why wont the datagrid accept the borderstyle's i have in my css ?.
> >
> > What i want is that the headers border-bottom has a width of 5px and the
> > rest of the borders in the datagrid should be 1 px.
> >
> > I have other style's too and they work but all border styles are
> > disregarded.
> >
> >

>
>



 
Reply With Quote
 
Inga
Guest
Posts: n/a
 
      01-07-2004
Hi,

Maybe it will be usefull to someone..
I've already solved this problem. I applied my style to directly to the
column (boundcolumn, templatecolumn) of the grid and everything works fine
in IE, Netscape and Opera.

Inga


"Inga" <> wrote in message
news:e5Q0r$...
> I have problem with datagrid borders in other browsers than IE. E.g in

Opera
> it looks terrible: left cell border is black and I can't change it.
> Does anyone know how can I change it to color I need?
>
> Thanx,
> Inga (Lithuania)
>
>
> "Coleen" <> wrote in message
> news:...
> > I had this problem too, and the only way I found to get the datagrid to
> > accept my borders was to create the COMPLETE borders in my style sheet:
> > .border2
> > {
> > border-top-color: Black;
> > border-top-style:solid;
> > border-top-width:thin;
> > border-bottom-color: Black;
> > border-bottom-style:solid;
> > border-bottom-width:thin;
> > border-left-color: Black;
> > border-left-style:solid;
> > border-left-width:thin;
> > border-right-color: Black;
> > border-right-style:solid;
> > border-right-width:thin;
> > background-color: #006699;
> > Color: white;
> > }
> > I tried just using border: [style-solid],[width-thin],[color-white];

but
> > it would not work, plus I needed to make the background color different,

> so
> > this way I now can call either this border style or any other I have

> defined
> > in my Style sheet. Hope this helps...
> >
> > Coleen
> >
> > "Martin" <> wrote in message
> > news:...
> > > Hi
> > >
> > > Why wont the datagrid accept the borderstyle's i have in my css ?.
> > >
> > > What i want is that the headers border-bottom has a width of 5px and

the
> > > rest of the borders in the datagrid should be 1 px.
> > >
> > > I have other style's too and they work but all border styles are
> > > disregarded.
> > >
> > >

> >
> >

>
>



 
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 borders only print on page 1 =?Utf-8?B?TXJNaWtl?= ASP .Net 0 02-07-2005 06:45 PM
Tables with different color left and right borders, no top or bottom borders, etc. George HTML 9 10-25-2004 04:25 PM
Remove the XP borders of a ComboBox? Lars Netzel ASP .Net 0 07-28-2004 02:06 PM
TableRow Borders =?Utf-8?B?QWxleCBNYWdoZW4=?= ASP .Net 3 04-27-2004 07:15 AM
Re: DataGrid formatting - only one column without borders Anatoly ASP .Net 1 07-15-2003 12:41 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