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
835
Need to find entire grid height
posted

Hi,

I have a grid setup without a scrollbar (I've used the this.DisplayLayout.MaxRowScrollRegions = 1; property, which I believe forces the entire grid to display without the need for scrolling). The reason that I'm doing this is that I'm embedding the grid as a whole into another control for viewing all in one big snapshot. In order to do this, I'm adding the grid to a container. The container sometimes needs to know the final size of that grid in order to know how to big to make itself. I've taken a look at the Height property on the UltraGrid, but that doesn't seem to give the right height of the final grid with data (the resulting grid in my case ends up being quite large...anywhere from 100 to 1000 rows tall). Is there some property that I'm missing which would give me a good indicator of how long vertically the grid is (including headers)? I've tried doing back of the hand calculation that looks something like this: <Height of header> + <Number of rows> * <DefaultRowHeight property>, but that doesn't give me a correct height either.

Thanks,

Charley

Parents Reply Children