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

GridView Printing

1 Answer 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Salah
Top achievements
Rank 1
Salah asked on 02 Apr 2012, 08:41 AM
gridView dosnt Print Group Header Row
exist an example in telerik winform example "group summaries"
and i add a function to header row " Customer ID : ALFKI | Max of Freight: 63.53;"
but in printing dosent show " | Max of Freight: 63.53;"

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 03 Apr 2012, 01:45 PM
Hello Salah,

Thank you for writing.

I was able to reproduce the issue and I am happy to inform you that it has been addressed and will no longer be present in our next major release. Until the next release you can work around it by handling the PrintCellFormatting event and adding the following code to it:
private void radGridView1_PrintCellFormatting(object sender, PrintCellFormattingEventArgs e)
{
  GridViewGroupRowInfo row = e.Row as GridViewGroupRowInfo;
  if (row != null)
  {
    e.PrintCell.Text += " | " + row.GetSummary();
  }
}

I have also updated your Telerik points for bringing this issue to our attention.

I hope this will help. If you have further questions, I would be glad to assist.

Kind regards,
Ivan Petrov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Salah
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or