Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
'M'(/'m') and 'K'(/'k') financial numeric shortcuts
posted

Hello,

I'm using the Infragistics.Win.UltraWinGrid.UltraGrid to enable the entry/capture of financial data.

Its quite common to enable the key shortcuts 'M'(/'m') and 'K'(/'k') as quick entry (for 1000000 and 1000 respectively) for entry of monetary / quantity fields.  I currently have the UltraDataColumn.DateType of the related ltraDataSource columns set to the Type of System.Double.

When an non numeric character is currently entered the built in validation rejects the value, as expected.

I can't curently identify a way of trapping the cell value before this internal 'DataType' validation occurs, to enable the substitution of zeros when an 'M' or 'K' character is encountered.

Is there any built in support available to translate 'M'(/'m') and 'K'(/'k') to 1000000 and 1000, or a way that I can trap the value before the internal 'DataType' validation occurs?

With thanks in advance.

Parents Reply Children