Disable multiline in GridTextColumn
Attachment: MultilineText_4fbe63f0.zip
|
sfDataGrid1.Columns.Add(new GridTextColumn() { MappingName = "Destination", AllowTextWrapping = false });
|
Attachment: AllowTextWrapFalse_36813e1.zip
SqlCommand sqlCom = new SqlCommand(@"SELECT * From TestTab", sqlConn);
SqlDataAdapter sqlDA = new SqlDataAdapter(sqlCom);
sqlDA.Fill(tabTest );
{
Spalte.ImmediateUpdateColumnFilter = true;
Spalte.FilterRowCondition = Syncfusion.WinForms.DataGrid.Enums.FilterRowCondition.Contains;
Spalte.ShowToolTip = true;
}
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
Attachment: SfDataGriddemo_668af742.zip
- 7 Replies
- 4 Participants
-
MW Michael Witzik
- Jun 15, 2020 12:15 PM UTC
- May 20, 2022 02:35 PM UTC