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

Apply resize to fit to row header column

How can I resize the row header column width.

I tried ResizeToFit(GridRangeInfo.Col(0)) that did not work.

1 Reply

AD Administrator Syncfusion Team October 12, 2007 09:14 AM UTC

Try using the overload of ResizeToFit that allows you to specify some options, one of which indicates whether you want to resize header cells.

grid.ColWidths.ResizeToFit(GridRangeInfo.Col(0), GridResizeToFitOptions.IncludeHeaders);

Loader.
Live Chat Icon For mobile
Up arrow icon