Hi,
I have a RadGridView that is the AssociatedObject of a RadPrintDocument that I want to print via a PrintDialog:
private PrintDialog printDialog;
RadPrintDocument doc = new RadPrintDocument
{
AssociatedObject = radGridHistorie
};
printDialog.Document = doc;
printDialog.AllowSelection = true;
if (printDialog.ShowDialog() == DialogResult.OK)
{
doc.Print();
}
If I select "All" in the PrintDialog, all entries are printed on the document.
If I select "Selection" in the printDialog after having Rows selected in the GridView, no entries are on the printed document.
What is wrong?