Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DataMember Property

ErrorProvider.DataMember Property

Gets or sets the list within a data source to monitor.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member DataMember : string with get, set

Property Value

Type: System.String
The string that represents a list within the data source specified by the DataSource to be monitored. Typically, this will be a DataTable.

The DataMember is a navigation string based on DataSource.

To avoid conflicts at run time that can occur when changing DataSource and DataMember, you should use BindToDataAndErrors instead of setting DataSource and DataMember individually.

The following code example shows how to use the ErrorProvider with a DataSource and DataMember to indicate a data error to the user.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft