Text Wrap, GridDataBoundGrid

Is there any way I can wrap the text in a GridDataBoundGrid cell? I''m currently setting e.Style.WrapText = true; in the PrepareviewStyleInfo event of the GDBG, but it isn''t taking care of this. Is there any way I can set this globally on the grid so that whenever some text isn''t fitting into a cell, then the cell height expands accordingly so as to accommodate the text within the cell? Thanks.

1 Reply

AD Administrator Syncfusion Team August 27, 2005 09:18 AM UTC

Try setting grid.TableStyle.WrapText = true; For me using version 3.x, PrepareViewStyleInfo works to allow text to wrap and you can see it provided the row is tall enough to show it.
private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e)
{
	e.Style.WrapText = true;
}
Here is a sample. http://www.syncfusion.com/Support/user/uploads/GDBG_MultiSelect_13c5c7fe.zip

Loader.
Up arrow icon