ResizeToFit in a relation

I need to adjust the height and width of the cell of a relation in a data grid. i tried using the "grid.Model.ColWidths.ResizeToFit" method, but i must have been doing somthing wrong. can some one show me how to use the ResizeToFit method in relation rows?

1 Reply

AD Administrator Syncfusion Team March 20, 2006 12:20 PM UTC

Hi, Here is the code snippet and a demo sample, demonstrating the way to resize the columns and rows in the griddataboundgrid. this.gridDataBoundGrid1.Model.ColWidths.ResizeToFit(GridRangeInfo.Table(), GridResizeToFitOptions.NoShrinkSize); this.gridDataBoundGrid1.Model.RowHeights.ResizeToFit(GridRangeInfo.Table(), GridResizeToFitOptions.NoShrinkSize); Let us know if this helps. Best regards, Madhan.

Loader.
Up arrow icon