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

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

Thread ID:





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


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


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.

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