J
jpatrick
DataTable dataTable = new DataTable();
DataColumn dataColumn = new DataColumn();
// dataColumn.Table is null
dataTable.Columns.Add(dataColumn);
// dataColumn.Table is dataTable
DataColumn Table property is read-only. So how that property is changed? If
it can only be changed internally by the class itself, how does the
DataColumn know it has been added to that table to set the property?
DataColumn dataColumn = new DataColumn();
// dataColumn.Table is null
dataTable.Columns.Add(dataColumn);
// dataColumn.Table is dataTable
DataColumn Table property is read-only. So how that property is changed? If
it can only be changed internally by the class itself, how does the
DataColumn know it has been added to that table to set the property?