sfDataGrid1.Columns.Add(new GridTextColumn() { MappingName = "Destination", AllowTextWrapping = false });
|
Property AllowTextWrapping does not exist in the
GridTextColumn so most of this post is garbage.
Hi Lloyd Sheen,
The AllowTextWrapping property is defined in GridColumnBase class. Because
AllowTextWrapping property is used for different types of columns. So, we have
maintained commonly used properties in the base class of the grid column. The
GridTextColumn is derived from the GridColumnBase. So, we can use the
AllowTextWrapping property in by GridTextColumn.
API Link: https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.GridColumnBase.html#Syncfusion_WinForms_DataGrid_GridColumnBase_AllowTextWrapping
https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.GridTextColumn.html
UG Link: https://help.syncfusion.com/windowsforms/datagrid/columns
Please find the sample in the attachment and let us know if you have any
concerns in this.
Regards,
Vijayarasan S