Gets a IDataField.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

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(Grid 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