Collection of IDataField objects that is populated when GridControl requires data fields.

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

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 does not have underlying object. The object of this class can be added via GridControl.Rows.Add(IDataAccessor dataAccessor) property.
 Copy imageCopy
public void AddUnboundRow(GridControl 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());
}

Inheritance Hierarchy

System..::..Object
  Dapfor.Wpf.Data..::..UnboundValueAccessor

See Also