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
20
UltraWinGrid - Row Best Fit
posted

I would like to get the rows inside the grid to auto size to the verticle

height so that the grid boarder does not cut a row off in the middle

The AutofitStyle for columns is set correctly for all columns

Parents
  • 469350
    Suggested Answer
    Offline posted

    There's no built-in way to auto-size the rows to fit the height of the grid. It seems like an odd thing to do, since this would almost certainly cause the text in the rows to be unreadable - since the height of the row could be too small for the text to fit.

    You can, of course, attempt to calculate the height yourself and then set the Height of the rows. It would be pretty tricky, because you would have to account for the headers and borders on each row - and sometimes the borders overlap.

    You will also need to set the MininumHeight on the row in order to allow the row height to be smaller then the default, which is based on the font size.

Reply Children