GridView.IDataBoundControl.DataKeyNames 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置数据绑定控件中所显示项的主键字段的名称。
property cli::array <System::String ^> ^ System::Web::UI::WebControls::IDataBoundControl::DataKeyNames { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
string[] System.Web.UI.WebControls.IDataBoundControl.DataKeyNames { get; set; }
member this.System.Web.UI.WebControls.IDataBoundControl.DataKeyNames : string[] with get, set
Property DataKeyNames As String() Implements IDataBoundControl.DataKeyNames
属性值
一个数组,其中包含 GridView 控件中所显示项的主键字段的名称。
实现
注解
此成员是显式接口成员的实现。 它只能在 GridView 实例被强制转换为 IDataBoundControl 接口时使用。
此属性提供对 DataKeyNames 控件的 GridView 属性的访问。 它通过 IDataBoundControl 接口公开。
ASP.NET 动态数据支持此属性。