Articles in this section
Category / Section

How to print a particular range of cells in Silverlight GridControl?

1 min read

Grid Control allows you to print/preview a particular range of cells by specifying the PrintRange. To preview the range of cells, specify the PrintRange in the ShowPrintDialog() function as given in the following code example. To preview the range from Row (2, 4) and Column (2, 6):

C#

gridControl.ShowPrintDialog((p) =>
    {
    gridControl.PrintRange = GridRangeInfo.Cells(2, 2, 4, 6);
        p.ShowDialog();
    });

To print the particular range of cells directly, for example, the range from Row (2, 4) and Column (2, 6),

C#

gridControl.PrintRange = GridRangeInfo.Cells(2, 2, 4, 6);
gridControl.Print();

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied