I have initialized a grid with 1000 rows and 1000 columns. But in displaying I only used 50 rows and 100 columns. And how to print these cells in the range with 50 rows and 100 columns?
Thanks and expect your quick answer.
ADAdministrator Syncfusion Team October 24, 2004 11:49 PM
If you have cells selected in the grid, you can print them with code like:
GridPrintDocument pd = new GridPrintDocument(this.gridControl1, true);
PrintPreviewDialog dlg = new PrintPreviewDialog() ;
pd.PrinterSettings.PrintRange = System.Drawing.Printing.PrintRange.Selection;
dlg.Document = pd;
If you need to select the cells from code, you can add code to select a Cell range like: