Hello,
Here is the scenario:
I have a datagrid on a winform and a datatable is set as its
datasource. I have added DataGridTableStyle in datagrid's TableStyles
property. Some of Gridstyles are numeric (doubles) and I have set their
format to #,0.0000 since I want to display the values to comma seperated
(at thousands) and till four decimal places. User can also edit values
in the grid. So far so good.
The Problem:
Edited cell value reverts back to the previous value when the user
enters a comma formatted value. For example: original value was 52.0000
and user entered 1,000,000. IMO i should be displayed as 1,000,000.0000
but the value reverts back to 52.0000. I have tried to consume
CurrentCellChanged event of datagrid and also RowChanging/ColumnChanging
events.
- CurrentCellChanged event does not give me the new value from the
CurrencyManager.
- RowChanging/ColumnChanging events do not raise at all in the above
mentioned scenario.
Any thoughts/workarounds?
TIA.
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
*** Sent via Developersdex http://www.developersdex.com ***