DataBoundControl.ItemType Property


Gets or sets the name of the data item type for strongly typed data binding.

 virtual property System::String ^ ItemType { System::String ^ get(); void set(System::String ^ value); };
public virtual string ItemType { get; set; }
member this.ItemType : string with get, set
Public Overridable Property ItemType As String

Property Value

The name of the model type.



Setting this property enables the Item and BindItem data-binding expressions.

Setting this method automatically enables Dynamic Data functionality.

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

Applies to