Hi,
does anyone know if there is a method that returns the number of rows that a Grid can display with its actual size?
The methode I am looking for would be depending on the size of the grid and should also return the value of possible displayed rows, even if the grid is empty. (maximal visible Rows???)
Thank you for your help!
Andreas
I must not be understanding the question. If your row height is fixed at N pixels, and your grid height is fixed at M pixels, and the sum of the heights of header rows, scrollbars, etc., is fixed at P pixels, you should be able to compute the number of possible rows: (M - P)/N
So what am I missing? ;-)
How do I know my row height in pixels?
Hello,
On the server it is hard to know that since many client-side features play role, e.g. margins, paddings, wrapping, etc. Still, generally you can rely on the DisplayLayout.RowHeightDefault setting:
<DisplayLayout RowHeightDefault="20px" ... />
HTH,