Question

I have set the realValue property of Grid's realEdit field from 0.00 to 1.00

What I want to achieve is that when I add new record in Grid I want the realEdit field to be 1 by default, not 0.00.

enter image description here

But it still shows 0.00. Is not it the right properties to change?

Was it helpful?

Solution

If your real control is bound to a field, then set the value in the initValue method of the table (or in the datasource) as in this answer.

public void initValue()
{
  this.TestDefaultValue = 1;
}

If not bound, consider using a display method or setting the value at runtime:

realEdit.realValue(3.14);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top