Hi,Could you please provide the solution for below issue:
My Purpose :I have one "Double" field bounded to WPF XamDataGrid,and I Need to show the Parenthesis for negative values
Example -123,005 to be shown as (123,005)
My Approach:I have applied ControlTemplate and Converter to achieve my purpose
Issue : I was NOT able to EDIT this double field after applying the "Control Template" and "Converter"
Thanks,
Rebinding the XamDataGrid will reinitialize the records. Also scrolling them out and back in of view, grouping, ungrouping, expanding collapsing are all actions that will make the record to initialize.
Could you please tell the way to raise the InitializeRecords() Event?
Then you should create if you have not created or get the style (if you have already defined it in the resources somewhere) and apply it to this field. However, I believe you would have to reinitialize the records in order for this change to take effect.
Hi Alex Fidanov,Thanks a lot for the suggestion.
Could you please provide solution for the below issue:
NOW : I can able to use this Converter on code behind file on XamGrid_Loaded() event. It's working fine.
My Issue / Need : I need to apply this dynamically on clicking "Menu" on Menu bar
Thanks.
Hello,
For this, you do not have to retemplate the cellvaluepresenter. What you need to do is the EditorStyle property of the Field's Settings, like this:
<igDP:Field Name="ClientName">
<igDP:Field.Settings>
<igDP:FieldSettings>
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamTextEditor}">
<Setter Property="ValueToDisplayTextConverter" Value="{StaticResource conv}"/>
</Style>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>