GridView.ClientIDRowSuffix Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
virtual property cli::array <System::String ^> ^ ClientIDRowSuffix { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.StringArrayConverter))]
public virtual string[] ClientIDRowSuffix { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.StringArrayConverter))>]
member this.ClientIDRowSuffix : string[] with get, set
Public Overridable Property ClientIDRowSuffix As String()
Property Value
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.
- Attributes
Remarks
To 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.