Gets a IDataField.

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

Syntax

C#
public IDataField DataField { get; }
Visual Basic
Public ReadOnly Property DataField As IDataField
	Get
Visual C++
public:
property IDataField^ DataField {
	IDataField^ get ();
}
F#
member DataField : IDataField with get

Property Value

Type: IDataField
The data field if found. Otherwise null.

Examples

 Copy imageCopy
public void CellValue(GridControl grid)
{
    Product product = new Product();
    grid.Rows.Add(product);
    Row row = grid.Rows[0];

    product.Price = 12.65;
    Console.WriteLine("Price of the product = {0}", product.Price);

    row["Price"].Value = 13.44;
    Console.WriteLine("Updated price of the product = {0}", product.Price);
}

//Console output:
Price of the product = 12,65
Updated price of the product = 13,44

Thread Safety

The property is thread-safe.

See Also