>The following code is from KiloFox
>
>
>If Not Empty(m.tcTag)
> With This
> *** Make sure it really is a tag for the grid's RecordSource
> If IsTag(m.tcTag, .RecordSource)
> *** Go ahead and set the order for the table
> Select (.RecordSource)
> Set Order To (m.tcTag)
> .SetFocus()
> Endif
> Endwith
>Endif
>
>
>When I click on a "qualifying" column, whilst the order of the grid changes, the column that I have clicked on does not receive focus (where I mean that the new column becomes "selected"). In fact, the previous column retains focus. In the above code, I assume that the Setfocus method call is the the grid's setfocus.
>
>To physically change column after clicking on the header, what needs to be done? I am using Nick's grid highlighter class. I assume that will not cause any issue?
>
>Many thanks!
>
>-=Gary
The column in not changed when clicking on the header. If you want to change it, you can put this code in header.click()
...
this.parent.setfocus() && Set focus on the column
If it's not broken, fix it until it is.
My Blog