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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

55354 Jan 29,2007 12:09 PM UTC Jan 29,2007 02:00 PM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 29, 2007 12:09 PM UTC

Hi,

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

Richard Deverson
Replied On January 29, 2007 01:06 PM UTC

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 02:00 PM UTC

Hi,

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

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.

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

;