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();