[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITable.AutoGenerateColumns

AutoGenerateColumns Property

AutoGenerateColumns

Gets or sets whether the table generates columns automatically when it is bound to a data source.

When this property is true, the table can create columns from the fields in the bound data source during data binding.

Declaration
bool AutoGenerateColumns { get; set; }
Property AutoGenerateColumns As Boolean
Examples
worksheet.DataSource = new JsonDataSource("{\"ds\":[{\"name\":\"jack\",\"age\":12}]}");
ITable table = worksheet.Tables.Add(worksheet.Range["A1:C2"], true);
table.AutoGenerateColumns = true;
table.BindingPath = "ds";
bool autoGenerateColumns = table.AutoGenerateColumns;