We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ResizeToFit in a relation

Thread ID:





42066 Mar 19,2006 07:54 AM UTC Mar 20,2006 12:20 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On March 19, 2006 07:54 AM UTC

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?

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon