IDataItemContainer Interface

 

Enables data-bound control containers to identify a data item object for simplified data-binding operations.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public interface class IDataItemContainer : INamingContainer

NameDescription
System_CAPS_pubpropertyDataItem

When implemented, gets an object that is used in simplified data-binding operations.

System_CAPS_pubpropertyDataItemIndex

When implemented, gets the index of the data item bound to a control.

System_CAPS_pubpropertyDisplayIndex

When implemented, gets the position of the data item as displayed in a control.

NameDescription
System_CAPS_pubmethodEnableDynamicData(Type^)

Overloaded. Enables Dynamic Data behavior for the specified data control.(Defined by DataControlExtensions.)

System_CAPS_pubmethodEnableDynamicData(Type^, IDictionary<String^, Object^>^)

Overloaded. Enables Dynamic Data behavior for the specified data control.(Defined by DataControlExtensions.)

System_CAPS_pubmethodEnableDynamicData(Type^, Object^)

Overloaded. Enables Dynamic Data behavior for the specified data control.(Defined by DataControlExtensions.)

System_CAPS_pubmethodGetDefaultValues()

Overloaded. Gets the collection of the default values for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodGetMetaTable()

Overloaded. Gets the table metadata for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodSetMetaTable(MetaTable^)

Overloaded. Sets the table metadata for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodSetMetaTable(MetaTable^, IDictionary<String^, Object^>^)

Overloaded. Sets the table metadata and default value mapping for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodSetMetaTable(MetaTable^, Object^)

Overloaded. Sets the table metadata and default value mapping for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodTryGetMetaTable(MetaTable^%)

Overloaded. Determines whether table metadata is available.(Defined by DynamicDataExtensions.)

Container classes that implement the IDataItemContainer interface can specify which of their properties identifies the data item for data-binding operations, such as late binding with the DataBinder class.

The following code example demonstrates how to use the IDataItemContainer interface. The SimpleSpreadsheetControl is a control that displays tabular-style data, similar to a DataGrid or GridView control. It contains a set of SimpleSpreadsheetRow objects.

The SimpleSpreadsheetRow class is a container class that implements the IDataItemContainer interface. Although in this example the data item property is intuitively named Data, the DataItem property can be implemented to map to any property or return value of a method.

No code example is currently available or this language may not be supported.

The following code example demonstrates how to use the SimpleSpreadsheetControl and AccessDataSource control to display data in an Access database.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: