Row Class
See Also  Members  
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace : Row Class

Represents any type of row in a grid. The DataRow and InsertionRow class derive from this class.

Object Model



Syntax

Visual Basic (Declaration) 
<TemplatePartAttribute(Name="PART_RowFocusRoot", Type=System.Windows.FrameworkElement)>
<ContentPropertyAttribute("Cells")>
Public MustInherit Class Row 
   Inherits Control
   Implements ISupportInitializeIFrameworkInputElementIInputElementIHaveResourcesIAnimatableDUCE.IResource, IDataGridItemContainer, IPrintInfo 
C# 
[TemplatePartAttribute(Name="PART_RowFocusRoot", Type=System.Windows.FrameworkElement)]
[ContentPropertyAttribute("Cells")]
public abstract class Row : Control, ISupportInitializeIFrameworkInputElementIInputElementIHaveResourcesIAnimatableDUCE.IResource, IDataGridItemContainer, IPrintInfo  

Remarks

Because rows are virtualized, meaning that they only exist when they are in a grid's viewport, references to them, or one of their cells, should not be kept.

Fixed Columns vs. Templates This feature is available only in the Professional Edition 

In order to support fixed columns when creating a new row template for a table-view layout, the following criteria must be met:

  1. The PART_CellsHost template part must be a FixedCellPanel.
  2. The FixedCellCount property of the FixedCellPanel must be bound to the table view's FixedColumnCount property using a TwoWay ViewBinding.

The fixed-cell-panel properties listed below are also usually bound when provided a new row template for a table-view layout:

  1. SplitterStyle (TemplateBinding xcdg:TableView.FixedColumnSplitterStyle)
  2. SplitterWidth (xcdg:ViewBinding FixedColumnSplitterWidth)
  3. ShowSplitter (xcdg:ViewBinding ShowFixedColumnSplitter)
  4. FixedColumnDropMarkPen (xcdg:ViewBinding FixedColumnDropMarkPen)

If a new template is provided for a DataGridControl and fixed columns are to be supported, it is essential that a TableViewScrollViewer be used. This scroll viewer is responsible for preserving the TranslateTransforms that fix and scroll elements, as well as executing the PageLeft and PageRight actions according to the reduced viewport.  It is also recommended that an AdornerDecorator be located above the TableViewScrollViewer of the templated DataGridControl to support drag and dropping of the fixed-column splitter correctly.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     Xceed.Wpf.DataGrid.Row
                        Xceed.Wpf.DataGrid.ColumnManagerRow
                        Xceed.Wpf.DataGrid.DataRow
                        Xceed.Wpf.DataGrid.StatRow

Requirements

Supported Operating Systems: Windows Server 2003 Service Pack 1; Windows Vista; Windows XP Service Pack 2

See Also