Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1187
How to progmatically set the row height
posted

I want to pad the top and bottom of my rows to provide some more spacing for readabilty, not spacing between rows, but padding inside the cells.  How can I either progmatically set the row height or pad the top and bottom of my rows?

  • 37774
    Verified Answer
    posted

    I don't think that there's a way to set padding just for the top and bottom of the rows/cells, but you could certainly set the height directly through the Height property on each row.  If you want to set individual heights of rows, you would first have to set the Override object's RowSizing property to Free or AutoFree, otherwise setting the Height of one row will affect all.

    If you don't mind having padding all around the cells, you could set the CellPadding property on the Override object.

    -Matt