Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataViewBase.PrintSelectedRowsOnly Property

Gets or sets whether to print/export only the selected rows. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public bool PrintSelectedRowsOnly { get; set; }

#Property Value

Type Default Description
Boolean false

true, to print/export only the selected rows; otherwise, false.

#Remarks

To print selected rows, enable multiple row, card, or node selection:

  1. Check that the DataViewBase.NavigationStyle property is set to Cell or Row.
  2. Set the DataControlBase.SelectionMode property to MultiSelectMode.Row or MultiSelectMode.MultipleRow.

Note

If the GanttView.PrintSelectedRowsOnly property is set to true, the GanttControl prints connectors for the selected tasks only.

Refer to the following topics for more information on how to print data:

See Also