Word Wrap In Data But Not Header

Is there any way to enable word wrapping in the data, but not in the header?

1 Reply 1 reply marked as answer

RN Rahul Narayanasamy Syncfusion Team February 22, 2021 08:55 AM UTC

Hi Jonah, 

Greetings from Syncfusion. 

Query: Word Wrap In Data But Not Header  

We have validated your query and you want to wrap the cell content of the Grid content area only(not wrap the header area). You can set WrapMode as Content in GridTextWrapSettings. Find the below documentation for your reference. 

Reference: 

@using Syncfusion.Blazor.Grids 
 
<SfGrid DataSource="@Orders" GridLines="GridLine.Default" AllowTextWrap="true" Height="315"> 
    <GridTextWrapSettings WrapMode="WrapMode.Content"></GridTextWrapSettings> 
    <GridColumns> 
        <GridColumn Field=@nameof(Order.RollNo) HeaderText="Roll No" Width="140"></GridColumn> 
        . . . 
    </GridColumns> 
</SfGrid> 
 
@code{ 
    public List<Order> Orders { get; set; } 
 
    . . . 
} 

Please let us know if you have any concerns. 

Regards, 
Rahul 


Marked as answer
Loader.
Up arrow icon