print GridView

2 posts, 0 answers
  1. super
    super avatar
    1 posts
    Member since:
    Feb 2016

    Posted 17 Feb Link to this post

    I want to print my GridView,when i set gv.PrintStyle.FitWidthMode = PrintFitWidthMode.FitPageWidth, the header text can not wrap automatically. The row text can wrap automatically, but its height can not grow automatically, how to do, thanks.

  2. Dess
    Dess avatar
    1561 posts

    Posted 19 Feb Link to this post

    Hello ,

    Thank you for writing.
    If you set the GridViewColumn.WrapText property to true, the data rows together with the header rows are with wrapped text. Please refer to the attached screenshot illustrating the behavior on my end.
    foreach (GridViewColumn col in this.radGridView1.Columns)
        col.WrapText = true;

    I hope this information helps. Should you have further questions I would be glad to help.
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top