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);
The name of a column in a DataTable.
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.
ListBinding Class | ListBinding Members | System.WinForms Namespace