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
990
XamCurrencyEditor not showing updating values.
posted

XAML Code
=============
 <Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="_visiblerHeaderRowFieldLeft" BasedOn="{StaticResource _visiblerHeaderRowField}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
                        <Grid Background="{TemplateBinding Background}">
                            <StackPanel Orientation="Vertical">
                                <igEditors:XamNumericEditor Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value}" />
                                <TextBox Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value}" />
                            </StackPanel>
                            <!--<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />-->
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

 

unboundField.

 

Settings.CellValuePresenterStyle = (Style)this.Resources["_visiblerHeaderRowFieldLeft"];

 

 

I tried to show XamCurrencyEditor in Cell of XamDataGrid but it dosnt show the value (not the same binding is applied to text block which shows the value, so no binding issue).

 

Code Behind
============
           Style style = new Style(typeof(XamCurrencyEditor));
            unboundField.Settings.EditAsType = typeof (double);
            unboundField.Settings.EditorStyle = style;

I tried with code behind but its not working? Please help me in this.