We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Currency Cell type problem

Thread ID:





91441 Nov 19,2009 01:00 AM UTC Nov 19,2009 09:11 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 19, 2009 01:00 AM UTC

We have GridDataBoundGrid's bound to DataView's and some of the cells are "Currency" cell type.
We are handling the CurrentCellValidating event and when we do we have a bit of code that does this:

object proposedValue = CurrentCell.Renderer.GetCellValue();

For regular text cells and masked cells the variable proposedValue is initialized to what the user has just typed in and it's the correct type (string, integer, etc). But for currency cells, it's always a decimal whose value is 0 if, and only if, the cell value was previously null.
If the cell value is not null and the user types in, for example, 123 then the value from the call to GetCellValue will be a decimal of 123 as expected.
I haven't been able to check if this behaviour also occurs in cells masked as numbers or date cells - I'm guessing it's probably just currency cells.
We've recently upgraded to version 7.303 from 6.4 and this doesn't seem to happen in 6.4.

Any ideas or workarounds?

Mark Atkinson

Lingaraj S [Syncfusion]
Replied On November 19, 2009 09:11 AM UTC

Hi Mark,

Thank you for your interest in Syncfusion products.

We able to the mentioned issue with our version. It has been resolved in our latest version. Please upgrade to our latest version

Try using below link to get our latest version details and download

Please let me know if you have any other concerns.

Lingaraj S.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon