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.

How to auto fit data in Rows and columns as per size

Thread ID:





55354 Jan 29,2007 07:09 AM Jan 29,2007 09:00 AM Windows Forms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On January 29, 2007 07:09 AM


How to auto size rows and column width to fit the data inthe cell without hidden..?

Richard Deverson
Replied On January 29, 2007 08:06 AM

Have you tried this?:
gridControl.Model.ColWidths.ResizeToFit(GridRangeInfo.Cols(startColumnIndex, endColumnIndex))

It works pretty well for me.

Administrator [Syncfusion]
Replied On January 29, 2007 09:00 AM


Thanks, It works for column perfectly. But i dont know no of rows in advance ...so how to give range for rows


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.