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.
Unfortunately, activation email could not send to your email. Please try again.

ResizeToFit in a relation

Thread ID:

Created:

Updated:

Platform:

Replies:

42066 Mar 19,2006 02:54 AM Mar 20,2006 07:20 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 19, 2006 02:54 AM

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 07:20 AM

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.

CONFIRMATION

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.

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.

;