See Also

GridView Members  | Infragistics.Windows.DataPresenter Namespace

Language

Visual Basic

C#

Show All

See Also Languages Infragistics3.Windows.DataPresenter.v7.1

GridView Class

Infragistics.Windows.DataPresenter Namespace : GridView Class

ViewBase derived class that defines settings and defaults for a view that arranges data using a classic grid layout. The GridView object is used by XamDataGrid and XamDataPresenter

For a list of all members of this type, see GridView members.

Object Model


Syntax

[Visual Basic]
Public Class GridView    Inherits ViewBase
[C#]
public class GridView : ViewBase

Remarks

The GridView object is used by XamDataGrid and XamDataPresenter to provide settings and defaults that Infragistics.Windows.DataPresenter.DataPresenterBase (the base class for the XamDataGrid and XamDataPresenter controls) can query when it provides UI element generation and field layout generation services in support of the View. While the GridView is not actually reponsible for arranging items, it does expose a property called ItemsPanelType that returns the Panel derived type that should be used to provide layout functionality for DataRecords displayed in the view. Infragistics.Windows.DataPresenter.DataPresenterBase will ensure that a panel of ItemsPanelType is generated for use by the embedded Infragistics.Windows.DataPresenter.RecordListControl (the ListBox derived class used to display DataRecords).

The GridView object exposes a property called ViewSettings that returns a GridViewSettings object. (Note: This property is not found on the ViewBase class but is specific to the GridView). GridViewSettings in turn exposes properties that let you control features supported by the GridView. Refer to GridViewSettings object for detailed information on these properties.

Note: GridView is only used by the XamDataPresenter control (as described above) when the XamDataPresenter control's View property is set to an instance of GridView.

The following ViewBase properties are overridden by the CarouselView:
Property Description Overridden Value
AutoFitToRecord Returns a boolean indicating whether the cell area of a DataRecordPresenter will be auto sized to the Infragistics.Windows.DataPresenter.RecordPresenter itself or based on the root Infragistics.Windows.DataPresenter.RecordListControl when DataPresenterBase.AutoFitResolved is true. false
CellPresentation Returns the type of CellPresentation used by the view which determines the default manner in which the cells within each row are laid out by the FieldLayoutTemplateGenerator. CellPresentation.GridView
DefaultAutoArrangeCells Returns the default value for AutoArrangeCells for field layout templates generated on behalf of the View. If LogicalOrientation is Vertical then AutoArrangeCells.LeftToRight otherwise AutoArrangeCells.LeftToRight
HasLogicalOrientation Returns a value that indicates whether this View arranges its descendants in a particular dimension. true
IsAutoFitHeightSupported Returns true if the height of the cells within in each row should be adjusted so that all cells will fit within the vertical space available for the row. If ViewSettings.Orientation is Orientation.Horizontal then true, otherwise false
IsAutoFitWidthSupported Returns true if the width of the cells within in each row should be adjusted so that all cells will fit within the horizontal space available for the row. If ViewSettings.Orientation is Orientation.Vertical then true, otherwise false
IsFixedRecordsSupported Returns true if the Infragistics.Windows.DataPresenter.DataPresenterBase should allow records to be fixed at the top or bottomof the UI. true
ItemsPanelType Returns the type of Panel used by the view to layout items in the list. typeof(GridViewPanel)
LogicalOrientation The Orientation of the View, if the view only supports layout in a particular dimension. ViewSettings.Orientation
SupportedDataDisplayMode Returns a value that indicates the DataDisplayMode supported by the View. DataDisplayMode.Hierarchical

Example

[XAML] The following sample demonstrates how to initialize a specific View for the XamDataPresenter. In this case, a GridView is created and its ViewSettings is initialized such that the DataRecords will be arranged horizontally instead of the default vertical Orientation.

<igDP:XamDataPresenter BindToSampleData="True">
    
    
<igDP:XamDataPresenter.View>
        
<igDP:GridView>
            
<igDP:GridView.ViewSettings>
                
<igDP:GridViewSettings Orientation="Horizontal"/>
            
</igDP:GridView.ViewSettings>
        
</igDP:GridView>
    
</igDP:XamDataPresenter.View>
    
</igDP:XamDataPresenter>

See Also

GridView Members  | Infragistics.Windows.DataPresenter Namespace

E-mail your feedback on this topic.

Opinion about our help? Take our survey.

Copyright © 2003-2007 Infragistics, Inc. All rights reserved.

Build Version: 7.1.20071.1320