DetailsView.IDataBoundItemControl.Mode 属性

定义

有关此属性的说明,请参见 ModeFor a description of this property, see Mode.

property System::Web::UI::WebControls::DataBoundControlMode System::Web::UI::WebControls::IDataBoundItemControl::Mode { System::Web::UI::WebControls::DataBoundControlMode get(); };
System.Web.UI.WebControls.DataBoundControlMode System.Web.UI.WebControls.IDataBoundItemControl.Mode { get; }
 ReadOnly Property Mode As DataBoundControlMode Implements IDataBoundItemControl.Mode

属性值

DetailsView 控件的当前模式。The current mode of the DetailsView control.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 DetailsView 实例被强制转换为 IDataBoundControl 接口时使用。It can be used only when the DetailsView instance is cast to an IDataBoundControl interface.

可以设置ReadOnly为或。Edit Delete DetailsViewThe DetailsView can be set to ReadOnly, Edit or Delete.

适用于