Hi All,
I'm making grid's column auto fit by using the code
private void MakeGridColAutoFit(DataGridControl gridControl)
{
foreach (Column column in gridControl.Columns)
{
double width = column.GetFittedWidth();
if (width > -1)
{
column.Width = width ;
}
}
}
private void gridEmp_LayoutUpdated(object sender, EventArgs e)
{
MakeGridColAutoFit(gridEmp);
}
The problem is that if we do this, the auto fit works, but then the column does not get resize at run time. Can anyone please suggest solution for this.