[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITableColumn.DataField

DataField Property

DataField

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.

Declaration
string DataField { get; set; }
Property DataField As String
Examples
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;