Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
BindableValueLists not showing in grid export
posted

Hi,

I've made a lot of use of BindableValueLists to set up options or value decoding in my grids, but I've run into a problem / bug when exporting the grids to Excel.  It appears that the bindablevaluelist does not get properly carried across to the print layout, so my export shows the raw value rather than the text.  This causes serious problems if there is a filter defined on a column with a bound list, as the filter runs against the text, not the value, and so in the print layout all rows are filtered out.

I can work around this in a few ways, either by manually looping through by data sources to create normal valuelists, or using bound comboeditors set to the editorcontrol of the column.

However, it would be nice to know if this is a bug or something I can fix in one place before I go and rework a load of code.  I did wonder whether it might be to do with a change of bindingcontext or something.

Regards

David

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi David,

    What version of the controls are you using? You should not have to do anything special here. The ValueList (whether bindable or not) should be carried over into the export layout and the export should look exactly as it does on-screen.

    If that's not working, then something is wrong. It's possible this is a bug in the grid, but that seems unlikely to me since this is a pretty common scenario and such a bug would be widely reported and we would be aware of it - unless there are some obscure set of circumstances that are causing it.

Reply Children