AD
Administrator
Syncfusion Team
August 5, 2005 10:43 PM UTC
The styles of the row headers come from grid.BaseStylesMap["Row Header"].StyleInfo.
Other padding of the cells contents can be also attributed to style.TextMargins values.
But the raised look of a Header cell is actually explicitly drawn by the header cellrenderer.OnDraw code. So, the BorderMargins likely will not affect this. If you want to have the full use of the margins in header cells, you should try changing style.CellType to something like "Static" which will make the header cell not use the header cellRenderer which explicitly draws the raised edges on the normal header cell. After doing this, you can also set Borders, Appearances and other style setting on the grid.BaseStylesMap["Row Header"].StyleInfo and have them take effect. If you do not change teh CellType, then the header renderer will ignore these setting and do what it does to draw teh standard raised header cell.