Infragistics(R) NetAdvantage(R) Windows Forms
RowPropertyCategories Enumeration
Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : RowPropertyCategories Enumeration

Used for specifying which settings to carried over from grid rows to print rows when printing.

Syntax

Visual Basic (Declaration) 
Public Enum RowPropertyCategories 
   Inherits System.Enum
C# 
public enum RowPropertyCategories : System.Enum 

Members

MemberDescription
All All of above.
Appearances Various appearance settings on the rows (Appearance, CellAppearance etc.).
CellAppearance Appearance property on the cell objects.
CellEditorSettingsCopies over per cell Editor and ValueList (see UltraGridCell's UltraGridCell.ValueList and UltraGridCell.Editor) settings.
CompressedCardExpansionStateCopies over the expanded state of a card in Compressed UltraGridCardSettings.Style
Description Row description.
Expanded Row's expanded state (whether the row is expanded or collapsed).
Height Row heights.
Hidden Row's hidden state (whether the row is hidden or visible). Since filtered rows are hidden, specifying Hidden is a good way to apply the filters to the print rows so all the filtered out rows in the grid also are filtered out in the print.
None None.
RowSpacing BeforeRowSpacing and AfterRowSpacing settings of rows.
Tag Copies over the row and cell tags.
UnboundData Unbound cell data.

Example

Following code shows how to show the print preview of the grid and how to print the grid. It demonstrates the use of RowPropertyCategories enum.

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        ' Pass in All to specify that all settings get carried over from grid rows
        ' to the print/print-preview rows. This is used to facilitate WYSIWYG printing.
        Me.UltraGrid1.PrintPreview(RowPropertyCategories.All)

        ' Call print to actually print.
        Me.UltraGrid1.Print(RowPropertyCategories.All)
    End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

		private void button1_Click(object sender, System.EventArgs e)
		{
			// Pass in All to specify that all settings get carried over from grid rows
			// to the print/print-preview rows. This is used to facilitate WYSIWYG printing.
			this.ultraGrid1.PrintPreview( RowPropertyCategories.All );
			
			// Call print to actually print.
			this.ultraGrid1.Print( RowPropertyCategories.All );
		}

Remarks

,

See Also