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...
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
this might be a solution. I'll try it.
Thanks