Hi,
I have a ListObject with DataSource a DataTable.. DataTable's columns have set Caption property and ListObject have property AutoSetDataBoundColumnHeaders = true. But caption of Columns from ListObject is column name not column caption.
I try to change mannual ListColumn caption property but i can't find this property.
How can set caption of ListColumn
Thanks,
Marius

ListObject - ListColumn Caption
VMSSanthosh
I'm not sure why the column headers aren't working for you. I have a DataSet bound to a ListObject and the column headers appear. I also tried binding just a DataTable within the DataSet and the headers still appear properly.
My problem with databinding is performance -- I've asked about it in this thread but no one has responded so far. How large is your table Does it take a long time to load into Excel
acole
In column headers I have column name but I want to have column caption. Property of DataColumn ColumnName differ by property Caption and I want to display property caption not column name.
My table is very large (80 columns * ~ 5000 row) and I use paging for display table. Only 50 rows display in excel and in action panel I have 4 button for first page, previous page, next page and last page. First time when open excel file wait ~ 7 seconds, and for change page ~2 second.
Marius
Nick777
Not sure if this is what you want, but you can set the header cells explicitly like this (assuming the header is the first row of your excel spreadsheet):
for (int i = 0; i < myColumns.Count; i++)
((Excel.Range)myWorksheet.Cells[1, i + 1]).Value2 = myColumns[ i ].Caption;If you set it manually, AutoSetDataBoundColumnHeaders needs to be false.