Determine if user enters a integer or a double value into a cell of a grid.
I use a grid from DevExpress on my form. What I would like is a methode to check
if a user enters an integer-value (f.e: 8) or a double value (f.e: 8,8) into the cells
of column called colValue (fieldname = "Value").
I wrote it in psuedo-code:
if the column fieldname = Value
if (IsMGDL == false || value is a interger-value)
then devide (/) the value with 18
if (IsMGDL == true|| value is a double-value)
then x the value with 18
I have begun to do this myself and this is al I got:
And another approach would be to check if a value has a comma or a period in it.