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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Currency Cell type problem

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,
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?

Thanks,
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 7.3.0.20 version. It has been resolved in our latest version. Please upgrade to our latest version 7.4.0.20.

Try using below link to get our latest version details and download
http://www.syncfusion.com/downloads/latest-version

Please let me know if you have any other concerns.

Regards,
Lingaraj S.

CONFIRMATION

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.

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

;