This documentation is archived and is not being maintained.

IColumnMapping.DataSetColumn Property

Gets or sets the name of the column within the DataSet to map to.

[Visual Basic]
Property DataSetColumn As String
string DataSetColumn {get; set;}
__property String* get_DataSetColumn();
__property void set_DataSetColumn(String*);
function get DataSetColumn() : String;function set DataSetColumn(String);

Property Value

The name of the column within the DataSet to map to. The name is not case sensitive.


[Visual Basic, C#, C++] The following example creates an instance of the derived class, DataColumnMapping, and sets its properties.

[Visual Basic] 
Public Sub CreateDataColumnMapping()
    Dim myNewMapping As New DataColumnMapping()
    myNewMapping.SourceColumn = "Description"
    myNewMapping.DataSetColumn = "DataDescription"
End Sub

public void CreateDataColumnMapping() {
   DataColumnMapping myNewMapping = new DataColumnMapping();
   myNewMapping.SourceColumn = "Description";
   myNewMapping.DataSetColumn = "DataDescription";

void CreateDataColumnMapping() {
   DataColumnMapping* myNewMapping = new DataColumnMapping;
   myNewMapping->SourceColumn = S"Description";
   myNewMapping->DataSetColumn = S"DataDescription";

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IColumnMapping Interface | IColumnMapping Members | System.Data Namespace