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
ADAdministrator Syncfusion Team August 14, 2005 03:47 AM
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.