Xceed Grid for WinForms v4.3 Documentation
DetailGridTemplates Property (GridControl)


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridControl Class : DetailGridTemplates Property
Gets a list of the DetailGrid objects used as templates to create the detail grids that will be associated with each of the grid's DataRows.
Syntax
'Declaration
 
<BrowsableAttribute(False)>

<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)>

Public ReadOnly Property DetailGridTemplates As DetailGridList
'Usage
 
Dim instance As GridControl

Dim value As DetailGridList

 

value = instance.DetailGridTemplates
[Browsable(false)]

[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]

public DetailGridList DetailGridTemplates {get;}

Property Value

A reference to a Xceed.Grid.Collections.DetailGridList object containing a list of the detail grids used as templates to create the detail grids that will be associated with each of the grid's DataRows.
Remarks

The number of detail grids added to the grid's collection of DetailGridTemplates will determine the number of detail grids for each DataRow in the grid. For example, if you add 2 DetailGrid objects to the grid's DetailGridTemplates property, each DataRow in the grid will have 2 detail grids associated with it. If you want the DataRows of your detail grid's to also have detail grids, then you will need to add DetailGrid objects to the DetailGridTemplates property of the appropriate detail grid.

In order for the modifications made to the detail grid templates to be applied to the grid (after the grid has been populated) the UpdateDetailGrids method must be called.

Setting the Collapsed property of the detail-grid template to true prior to binding the grid to a data source will provide a significant decrease in grid's loading time as the data rows contained in the detail grids will only be created when a detail grid is accessed.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members
DetailGrid Class