[]
Gets or sets the data field name of the current table column.
This property gets or sets the field name associated with the current table column.
string DataField { get; set; }
Property DataField As String
worksheet.Range["A1:B3"].Value = new object[,] {
{"Product", "Amount"},
{"Apple", 100},
{"Pear", 200}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
ITableColumn tableColumn = table.Columns[0];
tableColumn.DataField = "Product";
string dataField = tableColumn.DataField;