Click here to Skip to main content
15,944,136 members
Please Sign up or sign in to vote.
1.33/5 (3 votes)
See more:
for example , i have Enums{ one=0, two=1, three=2, four=3}
in view model

if there is Enum 1, then i want have value should be validated

for Example

Enum two is selected then value should be value / 100.
value should be calculated

bind in XAML ,DataGridTextColumn, using DataGrid in WPF please
thanks in advance
Updated 23-Aug-12 10:25am
Matt T Heffron 23-Aug-12 16:20pm    
Either of the solutions below could be what you need. Could you provide a bit more detail of the problem?

Here is a much simplier example to write a value converter from:[^].

Good Luck.
Share this answer
You would have to use a IValueConverter of some sort if you would like to do that:
WPF Introduction: Databinding + Styles + IValueConverter[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900