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. Image for the cookie policy date

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

Hi,

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

2 Replies

RD Richard Deverson 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.


AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon