determining the display height of all rows

I would like to determine the height of all rows (the # of rows varies when the form is displayed) so that I can resize the form to "best fit" the grid---so that all the rows are displayed without having to scroll. Can you give some tips to do this. thanks

2 Replies

AD Administrator Syncfusion Team August 14, 2005 08:47 AM UTC

You can try: int height = this.grid.Model.RowHeights.GetTotal(0, this.grid.Model.RowCount); this.grid.ClientSize.Height = height; Here is a little sample. http://www.syncfusion.com/Support/user/uploads/SetGridHeight_929d4082.zip


MR Mike Ralston August 19, 2005 07:27 AM UTC

thanks for the sample.

Loader.
Up arrow icon