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
410
DefaultRowHeight is -1, how do i get the actual value?
posted

I am trying to get a default row height without setting it manually, so based on current font for example.

But when I check DefaultRowHeight off of the Override it's -1.

Does it have something to do with RowSizing enum?  Currently it's set to AutoFree.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Jiho,

    A DefaultRowHeight of -1 means the grid calculates the height of each row based on a number of factors including the RowSizing property, the font, the existence of dropdown buttons in the row and possibly other factors.

    So you can't simply get a single value for the DefaultRowHeight, since each row could be a different height.

    If you want the height or any individual row, you can use the row's Height property.

Reply Children