Live Chat Icon For mobile
Live Chat Icon
Share on twitter
Share on facebook
Share on linkedin

Header TextWrap in WPF GridDataControl

 

The Grid WPF team has created this sample to show how TextWrap can be applied to the Header row of the Grid.

Download sample: WPF_GDCHeaderWrap

this.grid.ModelLoaded += (s, a) =>
{
    this.grid.Model.HeaderStyle.TextWrapping = TextWrapping.Wrap;
    this.grid.Model.HeaderStyle.TextTrimming = TextTrimming.None;
    this.grid.Model.ResizeRowsToFit(GridRangeInfo.Row(0), GridResizeToFitOptions.None);
};

GridDataControl with header TextWrap

 

Tags:

Share this post:

Share on twitter
Share on facebook
Share on linkedin

Leave a comment

Popular Now

Be the first to get updates

Subscribe RSS feed
Scroll To Top