AD
Administrator
Syncfusion Team
August 10, 2006 09:33 AM UTC
Hi Suhas,
Please set the AllowResizeToFit property of the databoundgrid to true in the form_Load, this will help you to display the entire name in single line. This property is true by default.
this.gridDataBoundGrid1.AllowResizeToFit = true;
You can call the ResizeToFit method to dynamically make the contents of the cell to fit inside.
this.gridDataBoundGrid1.Model.ColWidths.ResizeToFit( GridRangeInfo.Col(2) ); // resizes column 2
FYI, you can also set the column widths manually for any particular column,like in the code below,
this.gridDataBoundGrid1.Model.ColWidths[2] = 75; // setting the column width for column2
Regards,
Rajagopal