ListView.ClientIDRowSuffix Property

Definition

Gets or sets the name of the data field whose value is used to uniquely identify each data row of a ListView control when the ClientIDMode property is set to Predictable.

C#
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.StringArrayConverter))]
public virtual string[] ClientIDRowSuffix { get; set; }

Property Value

String[]

The name of the data field whose value is used to uniquely identify each instance of a ListView 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 ListView control, ASP.NET generates a unique ClientID value for each instance of the control. You specify how the ClientID value is generated by setting the ClientIDMode property. If you set the ClientIDMode property to Predictable, ASP.NET generates the ClientID by appending a suffix that is derived from the data field specified in ClientIDRowSuffix. If ClientIDRowSuffix is not set, the suffix is a sequential number.

Applies to

Proizvod Verzije
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also