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
2690
Groupby in xamgrid
posted

I have a xamgrid which has Group by functionality and it works correctly

However the xamgrid has comboeditor and that comboeditor displays the value and is tied to id

Though the grouping works correctly, In the group by it displays the id (i.e 1/2/3) and not the value that is bound to those ids

If it possible to show the actual value and not the id

Parents
  • 2690
    posted

    I am using this sample as a reference

    Having the field as

     <ig:TemplateColumn.GroupByItemTemplate>
                          
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                      <TextBlock Text="{Binding field1, Converter={StaticResource GroupByValueConverter},ConverterParameter={Binding ElementName=LayoutRoot, Path=DataContext.view1}}"></TextBlock>
                                      
                                    </StackPanel>
                                </DataTemplate>
     

                        </ig:TemplateColumn.GroupByItemTemplate>

     

    But for some reason it give error saying value isnt passed

Reply Children