Home All Groups Group Topic Archive Search About

Another goofy datagrid issue

Author
18 Jan 2006 5:24 AM
Earl
Posted this in the WindowsForms.Controls forum and got zero reponses (maybe
they don't use the datagrid over there) ....

If I create a datagrid column with Format set to "c", I've noticed that
currency changes within the cell are not retained IN THE GRID upon leaving
the cell. Anyone have a workaround?

Author
18 Jan 2006 10:50 AM
Cor Ligthert [MVP]
Earl,

> If I create a datagrid column with Format set to "c", I've noticed that
> currency changes within the cell are not retained IN THE GRID upon leaving
> the cell. Anyone have a workaround?
What you think that it should do. Do you want to change the currency and it
should automaticly recalculate the value in Euros to Zlottys. The format is
a property which tells how a value should be *showed* accoording to the
system globalization settings of that. Nothing more.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalizationnumberformatinfoclasstopic.asp

Be aware that a cell in a datagrid will keep the typed in value as long as
there is no rowchange.

I hope this helps,

Cor
Author
18 Jan 2006 4:17 PM
Earl
Thanks Cor. I believe it was a rowchange.

Show quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:Ol6$3zBHGHA.1088@tk2msftngp13.phx.gbl...
> Earl,
>
>> If I create a datagrid column with Format set to "c", I've noticed that
>> currency changes within the cell are not retained IN THE GRID upon
>> leaving the cell. Anyone have a workaround?
> What you think that it should do. Do you want to change the currency and
> it should automaticly recalculate the value in Euros to Zlottys. The
> format is a property which tells how a value should be *showed* accoording
> to the system globalization settings of that. Nothing more.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalizationnumberformatinfoclasstopic.asp
>
> Be aware that a cell in a datagrid will keep the typed in value as long as
> there is no rowchange.
>
> I hope this helps,
>
> Cor
>
>

AddThis Social Bookmark Button