Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nice grid but rebel
Message
From
01/11/2011 09:47:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Nice grid but rebel
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01527772
Message ID:
01527772
Views:
85
Hi friends:

I have a grid with this characteristic:

column.textbox.controlsource="(IVA(field1,field2))"

As I need change field:

column.textbox.gotfocus:
this.controlsource="thisform.cost"
thsform.cost=IVA(field1,field2)

column.textbox.valid:
replace field1 with thisform.cost/(1+(field2/100))
thisform.cost=0
column.textbox.controlsource="(IVA(field1,field2))"

If I change next column no problem, if I change next row value in next row replace value in first row but only for display, field is ok since if I return to first row value in second row displays first row field.

I tried with beforerowcolchange but I discovered it executes before even valid event...

fieds are ok but the problem is how they are displayed.

If I include thisform.grid.refresh() every row shows my entry but not real fields.

Does anyone know how can I avoid this?

Thank you.

Héctor
Reply
Map
View

Click here to load this message in the networking platform