Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simulate Browse Freeze in a grid
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01287373
Message ID:
01288847
Views:
9
>Thanks for hanging in there Sergey. There is obviously something I am missing here: it shouldn't be this hard to figure out what data is displayed in column 4. Columns 1, 2 and 3 have fields from a parent table while Column 4 is from a related child table. I need to know the child value, if any, for the currently selected row. I expected this.column4.text1.value in the AfterRowColChange method of the grid to provide that information but it is NOT reliable. When AllowCellSelection = .f., the value does not change appropriately as you move from one row to another. If you click on columns 1 through 3, the value returned is typically the child value from row 1. If you click on column 4, the value returned may be from another row, but it is almost never from the currently selected row. The only time I've been able to reliably retrieve a value from column 4 is when AllowCellSelection = .t. and column 4 has focus.
>
>Update: EVAL(this.column4.controlsource) does appear to be reliable, even when AllowCellSelection = .f. I'll continue testing tomorrow but am hopeful this will prove to be the solution. Thanks!

Yes it's right direction.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform