views:

116

answers:

1

I have a DataGrid with AutoGenerate Columns Set to true. SomeHow the Column Names are Shrinking . I dont know how but they are not even changing if applying css to them.

What could be the reason.

A: 

This sounds interesting, but I'm not 100% sure what you mean by "shrinking". Is it:

  1. The column headings are displayed smaller and smaller each time you show the grid?
  2. The column headings are displayed in a smaller font than you'd like?
  3. The column headings are being truncated?

If you can't get CSS to style them, either the style sheet is not being loaded, the class name isn't correct in the CSS, the grid doesn't have the correct CSS class names, or the CSS has errors.

I've heard of strange problems being caused by invalid CSS, so one thing to try is to ensure your CSS is 100% valid. (See http://jigsaw.w3.org/css-validator/)

Simes