System.Data.Common Namespace DataColumnMapping Class
Sets or retrieves the name of the column within the DataSet to map to.
Script |
DataColumnMapping.DataSetColumn [ = strName ] |
strName |
The name of the column within the DataSet to map to. The name is not case sensitive. |
The property is read/write with no default value.
IColumnMapping.DataSetColumn
The following example shows one way of setting the DataSetColumn property.
void CreateDataColumnMapping ( ) {
DataColumnMapping myMap = new DataColumnMapping ( );
myMap.SourceColumn = "Description";
myMap.DataSetColumn = "DataDescription";
}
Sub CreateDataColumnMapping ( )
Dim myMap As New DataColumnMapping ( )
myMap.SourceColumn = "Description"
myMap.DataSetColumn = "DataDescription"
End Sub |
|
C# |
VB |
DataColumnMapping Members