NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ListBinding.DataMember

Gets or sets the column name to bind to.

[Visual Basic]
Public Property DataMember As String
[C#]
public string DataMember {get; set;}
[C++]
public: __property String* get_DataMember();
public: __property void set_DataMember(String*);
[JScript]
public function get DataMember() : String;
public function set DataMember(String);

Property Value

The name of a column in a DataTable.

Remarks

The value of the DataMember must contain as much information as necessary to bind to a specific DataColumn in a DataTable. This information varies according to the context in which the ListBinding is used. For example, if binding to a DataView, which is a view of a single DataTable, only the column name is needed.

On the other hand, if you are binding to a DataSet or DataSetView, you must qualify the DataMember value with the name of the DataTable as well as the column.

See Also

ListBinding Class | ListBinding Members | System.WinForms Namespace