GR
Golda Rebecal
Syncfusion Team
September 17, 2007 11:38 AM UTC
Hi Ben,
Sorry for the delay in responding.
You can make the column fit to text on resize double click by using the ResizeToFit method in the ResizingColumns event.
void gridControl1_ResizingColumns(object sender, Syncfusion.Windows.Forms.Grid.GridResizingColumnsEventArgs e)
{
if (e.Reason.Equals(GridResizeCellsReason.DoubleClick))
{
e.Cancel = true;
this.gridControl1.ColWidths.ResizeToFit(GridRangeInfo.Cols(e.Columns.Left,e.Columns.Left));
}
}
Please try this and let me know if this helps you.
We appreciate your interest in Syncfusion products.
Best regards,
Golda