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);