バージョン

GridViewSettings クラス

GridView でサポートされている機能を制御するプロパティを公開するオブジェクト。GridView オブジェクトは XamDataGrid および XamDataPresenter により使用されます。
シンタックス
'宣言
 
Public Class GridViewSettings 
   Inherits GridViewSettingsBase
public class GridViewSettings : GridViewSettingsBase 
解説

GridViewSettings オブジェクトのプロパティを操作することで、GridViewPanelFlat または GridViewPanelNested がどのように項目を整理するかを制御できます。

GridViewSettings オブジェクトによって公開されるプロパティは以下のとおりです。

  • GridViewSettingsBase.AllowLastRecordScrollToTop - 最後のレコードが上にスクロール可能かどうかを決定する値を返すか、設定します。
  • HeightInInfiniteContainers - 無限高が使用できるコンテナーで使用されている場合、ビューを実装するコントロールの高さのデフォルトとして使用する値を返すまたは設定します。
  • Orientation - レコードの向きを決定します。
  • WidthInInfiniteContainers - 無限幅が使用できるコンテナーで使用されている場合、ビューを実装するコントロールの幅のデフォルトとして使用する値を返すまたは設定します。
  • UseNestedPanels - 1 つの GridViewPanelFlat を使用してレコードを配列するか、複数の GridViewPanelNested パネルを使用するかどうかを決定します。
このクラスによってサポートされるプロパティの完全なリストおよび各プロパティによって有効にされる機能に含まれるマニュアルを参照してください。

使用例

    
<!-- Setting UseNestedPanels to true on a XamDataGrid will
         cause nested content to become active. This will enable
         any chrome, animations and triggers relating to
         RecordPresenters' nested content.
-->
    
<igDP:XamDataGrid x:Name="xamDataGrid1">
        
<igDP:XamDataGrid.ViewSettings>
            
<igDP:GridViewSettings UseNestedPanels="True" Orientation="Vertical"/>
        
</igDP:XamDataGrid.ViewSettings>
    
</igDP:XamDataGrid>

    
<!-- Here is how you would set UseNestedPanels properties
         on a XamDataPresenter.
         Note: the default value for UseNestedPanels is false and
               the default value for Orientation is Vertical.
-->
    
<igDP:XamDataPresenter x:Name="xamDataPresenter1">
        
<igDP:XamDataPresenter.View>
            
<igDP:GridView>
                
<igDP:GridView.ViewSettings>
                    
<igDP:GridViewSettings UseNestedPanels="True" Orientation="Vertical"/>
                
</igDP:GridView.ViewSettings>
            
</igDP:GridView>
        
</igDP:XamDataPresenter.View>
    
</igDP:XamDataPresenter>

' Setting UseNestedPanels to true on a XamDataGrid will
' cause nested content to become active. This will enable
' any chrome, animations and triggers relating to
' RecordPresenters' nested content.
Me.xamDataGrid1.ViewSettings.UseNestedPanels = True
Me.xamDataGrid1.ViewSettings.Orientation = Orientation.Vertical

' Here is how you would set ViewSettings properties
' on a XamDataPresenter.
' Note: the default value for UseNestedPanels is false and
'       the default value for Orientation is Vertical.
Dim gv As New Infragistics.Windows.DataPresenter.GridView
gv.ViewSettings.UseNestedPanels = True
gv.ViewSettings.Orientation = Orientation.Vertical
Me.xamDataPresenter1.View = gv
// Setting UseNestedPanels to true on a XamDataGrid will
     // cause nested content to become active. This will enable
     // any chrome, animations and triggers relating to
     // RecordPresenters' nested content.
     this.xamDataGrid1.ViewSettings.UseNestedPanels = true;
     this.xamDataGrid1.ViewSettings.Orientation = Orientation.Vertical;

     // Here is how you would set ViewSettings properties
     // on a XamDataPresenter.
     // Note: the default value for UseNestedPanels is false and
     //       the default value for Orientation is Vertical.
     Infragistics.Windows.DataPresenter.GridView gv 
         = new Infragistics.Windows.DataPresenter.GridView();
     gv.ViewSettings.UseNestedPanels = true;
     gv.ViewSettings.Orientation = Orientation.Vertical;
     this.xamDataPresenter1.View = gv;
参照