Collection of IDataField objects that is populated when Grid requires data fields.
Namespace: Dapfor.Net.DataAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public sealed class UnboundValueAccessor : IDataAccessor, IEnumerable<IDataField>, IEnumerable |
Visual Basic |
---|
Public NotInheritable Class UnboundValueAccessor Implements IDataAccessor, IEnumerable(Of IDataField), IEnumerable |
Visual C++ |
---|
public ref class UnboundValueAccessor sealed : IDataAccessor, IEnumerable<IDataField^>, IEnumerable |
F# |
---|
[<SealedAttribute>] type UnboundValueAccessor = class interface IDataAccessor interface IEnumerable<IDataField> interface IEnumerable end |
Remarks
This collection doesn't have underlying object. The object of this class can be added via Grid.Rows.Add(IDataAccessor dataAccessor) property.
Copy | |
---|---|
public void AddUnboundRow(Grid grid) { //Initialize the header grid.Headers.Add(new Header()); grid.Headers[0].Add(new Column("field1")); grid.Headers[0].Add(new Column("field2")); //Add an empty line to the grid Row row = grid.Rows.Add(new UnboundValueAccessor()); //Set some values to the object row["field1"].Value = 10; row["field2"].Value = true; //Add some hierarchy row.Expanded = true; row.Add(new UnboundValueAccessor()); row.Add(new UnboundValueAccessor()); } |