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
145
Exporting the XamDataGrid to Excel
posted

I followed your article about exporting to Excel.

My question is about exporting the VISIBLE value when I have a ComboBoxPresenter in a Cell.  My values are just Guids with no meaning, and I want to export the visible item - the text in the cell.

How can I get this?

Thanks in advance.

Marcos

Parents
  • 69686
    posted

    Hello Marcos,

    As the ExcellExporter exports the values of the cells, in your case the GUIDS and not the displaytext you can adjust the exporter little bit to fit your requirements. In the MakeWorkSheetRow function in the XamDataGridExporter class you can check if the CellValuePresenter of the cell is a XamComboEditor and get the display text (instead of the value) and save that into the Excel Cell.

    Hope this helps,
    Alex. 

Reply Children