Click to See Complete Forum and Search --> : Style sheet changes do not affect grid


just-in time
July 3rd, 2002, 05:06 AM
Hi There,

I'm developing a simple APS.NET website, put togehter a nice style sheet and everything worked great.

Now I want to change the style of my grid's item and alternatingitem. I've added this code to my css class

For item

border-left: medium solid black;
border-right: medium solid black;
border-top: medium solid black;
border-bottom: none;

For Alternating item

border-left: medium solid black;
border-right: medium solid black;
border-top: none;
border-bottom: medium solid black;

So the idea is to show item and alternating item with a single seeming border...

Now for the problem,

The border styles are not applied to my grid, i've tried rebuilding, restarting the enviroment nothing helps. The same problem occurs with another grid on an other form, only on that form no style is applied at All.

Im starting to lose hope here, wasting time on these simple layout problems, any help would be highly appreciated

just-in time
July 3rd, 2002, 09:52 AM
The frustration continues and i'm beginning to think this is a bug?

I've tried several thing and came to a rather strange conclusion

If I loop through all the rows is the grid (page_load) and set the borderstyle property of the row object to borderstyle.solid, the grid does!! display the black border as defined in the style sheet.
Only now it show's all the other borders as well, there are no properties for border-bottom in vb?? why not