Articles in this section
Category / Section

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

4 mins read

WinForms GridControl 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 cellsdirectly, for example, the range from Row (2, 4) and Column (2, 6),
C#
gridControl.PrintRange = GridRangeInfo.Cells(2, 2, 4, 6);
gridControl.Print();

Conclusion

I hope you enjoyed learning about how to print a particular range of cells in WinForms GridControl.

You can refer to our WinForms GridControl feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WinForms GridControl example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trialto check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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