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
330
Behavior DataPresenterExcelExporter
posted

I'm using DataPresenterExcelExporter for export to Excel. For converting and formating values we using CellExported

exporter.CellExported += exporter_CellExported;

void exporter_CellExported(object sender, CellExportedEventArgs e)
{

if (e.Value is SoumeType) doSoume();

}

But if e.Field is TemplateField, e.Value always return is string type. How to return original type of value (SoumeType) from TemplateField? 

Parents
  • 330
    Offline posted

    I found solution: e.Record.Cells[e.CurrentColumnIndex].Value. But, probably, this decision is not quite right.

    Please advise a more correct solution.

    Thank you.

Reply Children
No Data