>Hi Nick
>
>thank you for your responce. When I click on the column header on a grid, it selects the first cell (BLUE with no cursor), this is the action I would like. I have been playing around with your Grid highlighter....which is a great class, but I am unable to use your class, as I have 36 Grids on a form, the forecolour in the grid has already been changed according to a flag which is set.
>
>I hope this clears up a few things.
>
>TIA
Hi Ian,
If I understand you right, first you need
this.parent.SetFocus()
in each column Header.Click(), so it will shift the focus to the column which header is clicked on.
Then if don't want your cells in the grid to be editable (no cursor) you may set
thisform.grid1.SetAll("Enabled", .f., "Textbox")
thisform.grid1.SetAll("DisabledBackColor", RGB(0,0,255), "Textbox")
Grid Highlighter is supposed to handle row highlighting, not individual cells. For that matter, Grid Highlighter can handle any number of grids in the form it's just that you will need 36 instances of Grid Highlighter to handle each grid individually. :)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison