Adds a user-defined IDataAccessor as a child to this Row.

Namespace: Dapfor.Wpf.Controls
Assembly: Dapfor.Wpf (in Dapfor.Wpf.dll) Version: 4.1.0.26317 (4.1.0.26317)

Syntax

C#
public Row Add(
	IDataAccessor dataAccessor
)
Visual Basic
Public Function Add ( 
	dataAccessor As IDataAccessor
) As Row
Visual C++
public:
Row^ Add(
	IDataAccessor^ dataAccessor
)
F#
member Add : 
        dataAccessor : IDataAccessor -> Row 

Parameters

dataAccessor
Type: Dapfor.Wpf.Data..::..IDataAccessor
Data accessor.

Return Value

Type: Row
A new Row, having this row as the parent.

Remarks

Data can be added into the grid via GridControl.Rows.Add(object dataObject) method call. This method returns object of Row type. To build a hierarchy, it is enough to call the Row.Add(object) method, which in turn returns a new Row object. This way a programmer can build almost any data hierarchy in the GridControl. All headers and rows have their own zero-based hierarchical level that is defined by Header.Level and Row.Level properties. To display data in every row, GridControl takes header of the same level as that row. However, if that level doesn't have a header, the header for the previous hierarchical level is used. In other words, if only one header is present, the grid will behave like Microsoft Windows Explorer.

See Also