Situation:
I am using an OleDbDataAdapte r to fill a DataSet's DataTable with data
from an Access database. The DataSet's DataTable is bound to a
DataGrid. After the OleDbDataAdapte r.Fill method is called, the
DataGrid displays the column headings as the column names output from
the Access SQL query. I would like to change some of the styles for
certain columns in the DataGrid, so I first need to set the
DataGridColumnS tyle.MappingNam e Property of each DataGridColumnS tyle.
According to the .NET docs, "The MappingName property is usually set to
the ColumnName of a DataColumn."
Question:
What is the ColumnName Property of a DataColumn equal to when the
DataColumn is automatically created as a result of the
OleDbDataAdapte r? Is it equal to the column heading string?