Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataColumnMapping.DataSetColumn Property

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

[Visual Basic]
Public Overridable Property DataSetColumn As String  Implements _
public virtual string DataSetColumn {get; set;}
public: __property virtual String* get_DataSetColumn();
public: __property virtual void set_DataSetColumn(String*);
public function get DataSetColumn() : String;
public 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 a DataColumnMapping object, 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

DataColumnMapping Class | DataColumnMapping Members | System.Data.Common Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.