Hi all,
I have a weblistbox with a datasource, I would like to change some header text between different searches.
Tha columns are omogeneus across searches (totals), but I would like to reflect in the column headers some diffences in the query (I.E. 1 preveious week totals, previous month totals)
I can’t find a way to do it.
If I change the headers in the ColumnData method of the datasource, the headers text remains the same of the first call across different searches.
If I try to change it directly using HeaderAt(index) = “someText” the weblistbox loading process starts to loop(!)
I have tryed trying to change the header at the end of the RowData method of the datasource,
but also starting a timer and doing the HeaderAt(index) thing after a while I have the same result, the load process starts to loop
Any Idea?
Should I do it directly using some JavaScript?
My own workaround:
instead of issung a ReloadData for every new search, when the user hits ‘search’ I set the datasource of the weblistbox to nil, then I start a short new timer and set the datasource again.
This seems to work, but am I missing something?