GridView::ClientIDRowSuffix Property
Gets or sets the names of the data fields whose values are appended to the ClientID property value to uniquely identify each instance of a data-bound control.
Assembly: System.Web (in System.Web.dll)
public: [TypeConverterAttribute((StringArrayConverter^::typeid))] property array<String^>^ ClientIDRowSuffix { virtual array<String^>^ get(); virtual void set(array<String^>^ value); }
Property Value
Type: array<System::String^>^The names of the data fields whose values are used to uniquely identify each instance of a data-bound control when ASP.NET generates the ClientID value.
Implements
IDataKeysControl::ClientIDRowSuffixTo prevent naming conflicts when multiple instances of a control are rendered in multiple rows of a GridView control, ASP.NET generates a unique ClientID value for each instance. You specify how the ClientID value is generated by setting the ClientIDMode property. If you set the ClientIDMode property to Predictable, ASP.NET will generate the ClientID by appending a suffix that is derived from the data field or fields that are specified in ClientIDRowSuffix. If ClientIDRowSuffix is not set, the suffix is a sequential number.
Available since 4.0
Control::ClientIDMode
GridView Class
System.Web.UI.WebControls Namespace
ASP.NET Web Server Control Identification
How to: Access Controls from JavaScript by ID
Walkthrough: Making Data-Bound Controls Easier to Access from JavaScript
Walkthrough: Making Controls Located in Web User Controls Easier to Access from JavaScript