>I have a standard grid on a form. When the form is run, the grid appears with the column showing data as expected. If I then drag a column out of its initial location, how do I get an object reference to that column? In particular, I want to get to its controlsource.
>
>I've tried using the grid's activecolumn property but that doesn't work for me. For example, if I drag column5 to be in position 2 (measured relative to the left edge of the grid), ActiveColumn returns 2. What property (if any) could I use to return 5 or something that would indicate that column2 started out as column5?
>
>TIA
for each loColumn in this.columns
if loColumn.name = "My Column Name"
exit
endif
next
If it's not broken, fix it until it is.
My Blog