I have a grid that has
Presets->managed presets->look-> set to Office2003 Blue theme.
How do I go about making the headers less tall and more compact with the actual header text , please ?
Check out the MinRowHeight, CellPadding, and DefaultRowHeight properties on the Override. Also, the Height property on the Row.
My apologies, some weird stuff happens from time to time.
All grids on the form had the header line count set to 2. Can't tell you why or how.
Actually the issue I have is row height. When "use row layout" - rows height is tight.
When "use groups and levels" - there is , forget the technical term for it - space above and below, creating a tall row height.
I have tried going to Basic Settings->Feature Picker->Row sizing->Allow->Free to try to shrink to smallest - but no luck.
Font size is default 8.5. Row Selectors = on
How can i adjust the (kernelling?) row height when using "use groups and levels" ?
Want a nice tight compact grid - plenty of data to show on the form.
Hm. I'm not sure what infulleffect is referring to. There's no Colums property on the grid, nor is there a Style property on the column. And you can't set the height of column headers individually. Maybe he's referring to WebGrid.
Anyway, I tried the Office2003 Blue theme on the grid, and the headers seem to fit the text just right. The grid's Column headers are sized automatically based on the font. So if you want the headers to be smaller, you would have to make the font smaller. So you need to find out what property the preset it using for this. My guess would be grid.DisplayLayout.HeaderAppearance.FontData.
You could use this :
<yourgrid>.Columns(0).Header.Style.Height = 40
This is only for the first column then. You must do this for every column.