Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid--which column do I have?
Message
From
25/06/1999 08:44:48
 
 
To
24/06/1999 09:50:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00233472
Message ID:
00233898
Views:
26
>In VFP 6.0, if I have an object reference to a grid column, is there any property that can tell me which column I have? If the columns are movable, the ColumnOrder property is not useful (since it gives current position which changes when the user moves the column). I could use the column name, if necessary, but this solution is not ideal because it imposes a requirement on the naming of columns.
> Thanks, Chaim

Do you mean the third visible column, or the third absolute column? Either way you could tackle this by adding an array property to your grid and populating it at init with two dimensions: one with column name, and one with column order. After this, whenever you have a column name, you can look up its original order in your array.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform