We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

( Emergent )How to print the specified cells

Thread ID:





20740 Oct 24,2004 10:30 PM Oct 25,2004 12:49 AM Windows Forms 1
Tags: GridControl
Wang Pinghua
Asked On October 24, 2004 10:30 PM

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.

Administrator [Syncfusion]
Replied On October 25, 2004 12:49 AM

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; dlg.ShowDialog(); If you need to select the cells from code, you can add code to select a Cell range like: this.gridControl1.Selections.Ranges.Add(GridRangeInfo.Cells(1,1,5,5));


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.