This is a migrated thread and some comments may be shown as answers.

print GridView

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
super
Top achievements
Rank 1
super asked on 18 Feb 2016, 01:16 AM

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.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Feb 2016, 02:19 PM
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.
 
Regards,
Dess
Telerik
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
Tags
GridView
Asked by
super
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or