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
205
how to get the total height of all the visiable rows
posted

I want to resize the grid height so that it can right fit all the visible row/row headers. I dont have a way to calculate the height.

I'm sure there's a way to get it since the grid needs this value for scrolling.

Apperciate the help in advance...

 

Parents
  • 1803
    posted

    hi,

    I ve used the following and it holds good for me .......you can try this 

    i was using the grid within a panel ,so to set the panel's height i ve used the foll way to handle the grid height

    dim buffervalue as integer =20

    Dim gridHeight As Integer = UltraGrid1.Rows(0).Height * UltraGrid1.Rows.Count + UltraGrid1.DisplayLayout.Bands(0).Header.Height + buffervalue

    just check this and finally add some buffer value for the height for asethetic reasons

     just to ensure that you get the height of only visible rows ,,use the filteredout ,filterdin properties

    hope this helps you out for a work around way,.,.........

     

    hppy koding,

    Arun 

Reply Children