Export (0) Print
Expand All

IColumnMapping.DataSetColumn Property

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

[Visual Basic]
Property DataSetColumn As String
[C#]
string DataSetColumn {get; set;}
[C++]
__property String* get_DataSetColumn();
__property void set_DataSetColumn(String*);
[JScript]
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.

Example

[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

[C#] 
public void CreateDataColumnMapping() {
   DataColumnMapping myNewMapping = new DataColumnMapping();
   myNewMapping.SourceColumn = "Description";
   myNewMapping.DataSetColumn = "DataDescription";
}

[C++] 
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.

Requirements

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

Show:
© 2014 Microsoft