New to Telerik UI for WinForms? Start a free 30-day trial

IDataItem

Interface

Exposes the source object and field values represented by one item in a data view.

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Syntax:

C#
public interface IDataItem

Properties

Gets or sets the source object associated with this item when it is data-bound.

C#
object DataBoundItem { get; set; }

Gets the number of fields exposed by this item.

C#
int FieldCount { get; }

Gets or sets a field value by its zero-based ordinal.

C#
object this[int index] { get; set; }
Parameters:indexint

The field ordinal.

Gets or sets a field value by its name.

C#
object this[string name] { get; set; }
Parameters:namestring

The field name.

Methods

Finds the ordinal of a field by name.

C#
int IndexOf(string name)
Parameters:namestring

The field name to locate.

Returns:

int

The zero-based field ordinal used by the integer indexer.