3

I have a page which includes a css reset. On that page, I have a gridview with the GridLines="Both" property set to true, but the grid lines are not appearing. If I remove the css reset, the gridlines show up. This is only happening in IE. I want the reset and I want the gridlines to appear. Does anyone know the solution to this?

2
  • Inspect the GridView's applied styles with something like Firebug and then add them to your CSS file explicitly. Commented Jun 18, 2009 at 19:59
  • In other words, inline styling will not work is what you are saying? Commented Jun 18, 2009 at 20:00

1 Answer 1

1

Make sure to call the stylesheet or style defining the gridlines appearing after you've called the reset stylesheet.

Failing that makes sure that there isn't a more-specific selector defined in the reset stylesheet, that's overriding the element styles for which you want gridlines to appear. There's also nothing stopping you defining the gridlines in the reset-stylesheet, just as a check to see where the overriding style's being defined.

But, as noted in Jab's comment to your question, using Firebug would be the fastest way to see where the styles are coming from. If you're using IE then, assuming you're on IE8, you can use Firebug too, albeit they're calling it Developer Tools.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.