Hi there,
when I insert decimal values in datagrid I get diferent results if pressed ',' or '.'
Eg. value 7,25
When I insert 7,25 with ',' the final result is 725
but
When I insert 7,25 with '.' the final result is 7,25
I want that was indiferent press ',' or '.' the final result was always the same!
I check every char insert on the grid but I CanĀ“t assign olther value to a routed event that is already in use !
it's possible when the user press ',' change the value to '.' ?
Any ideias?
Thanks,
Jose Oliveira
when I insert decimal values in datagrid I get diferent results if pressed ',' or '.'
Eg. value 7,25
When I insert 7,25 with ',' the final result is 725
but
When I insert 7,25 with '.' the final result is 7,25
I want that was indiferent press ',' or '.' the final result was always the same!
I check every char insert on the grid but I CanĀ“t assign olther value to a routed event that is already in use !
void RadGridView1_KeyDown(object sender, KeyEventArgs e) |
{ |
if (e.Key == Key.Decimal) |
{ |
e.Handled = true; |
e.Source = "2"; // ==> error |
} |
if (e.Key == Key.OemComma) |
{ |
e.Handled = true; |
} |
if (e.Key == Key.OemPeriod) |
{ |
e.Handled = true; |
} |
} |
it's possible when the user press ',' change the value to '.' ?
Any ideias?
Thanks,
Jose Oliveira