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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Printing Row Ranges in Virtual Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

45325 Jun 16,2006 08:52 PM UTC Jun 19,2006 03:16 PM UTC WinForms 1
loading
Tags: GridControl
Jose Lacson
Asked On June 16, 2006 08:52 PM UTC

How can I print a range of rows, without doing the QueryRowHeight = 0?

Administrator [Syncfusion]
Replied On June 19, 2006 03:16 PM UTC

Hi Joe, This is achieved by setting the PrintRange enumeration of the PrinterSettings to Selection. To print the range of rows in a grid , you need to add the selection range.(using this.grid.Model.Selection.Add method). Here is a code snippet. this.grid.Model.Selections.Clear(); this.grid.Model.Selections.Add(GridRangeInfo.Rows(1,3)); GridPrintDocument pd = new GridPrintDocument(this.gridDataBoundGrid1, true); PrintPreviewDialog dlg = new PrintPreviewDialog(); pd.PrinterSettings.PrintRange = System.Drawing.Printing.PrintRange.Selection; dlg.Document = pd; dlg.ShowDialog(); this.grid.Model.Selections.Clear(); Please refer to the KB Article for more details. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=64 Let me know if this helps. Best Regards, Haneef

CONFIRMATION

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;