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
850
Excel exporter on combo editor columns
posted

I have a very simple xamDataGrid which has a combo editor column. The editing functionality works and looks fine. However when I try to export the grid to Excel using the Excel Exporter, I see the Id values that represent the text instead of the Text.

I have attached an example to demostrate what I mean.

Am I missing a setting or is this a problem/limitation with the exporter?

XamDataGridTesting.zip
Parents
  • 28407
    Verified Answer
    posted

    HI ,

     I had modified the setter of the ItemSource for the XamComboEditor:

    [Code]

    <Style TargetType="{x:Type igED:XamComboEditor}">

      <Setter Property="DisplayMemberPath" Value="Name" />

       <Setter Property="ValuePath" Value="Id" />

      <Setter Property="ItemsSource" Value="{Binding Path=DataContext.DataPresenter.DataContext.StatusList, RelativeSource={RelativeSource self}}" />

     <Setter Property="DropDownButtonDisplayMode" Value="OnlyInEditMode" />
     </Style>

    [\Code]

     Please review the attached sample.

    Sincerely,

     Matt
     Developer Support Engineer

    XamDataGridTesting.zip
Reply Children