>>>>Hi,
>>>>
>>>>I'm trying to run a custom method of a grid when a doubleclick between the grid headers is fired. By default, the column autofits it's visible content. I want the autofit for the column to consider ALL rows (even the ones that are not displayed in the grid). I have a method to do just that (thanks to Drew Speedie). The problem is, I want this method to fire when I doubleclick between the headers. How can I do that?
>>>>
>>>>TIA
>>>>
>>>>Mike
>>>MouseDown and MouseUp events of the grid are fired when you click between headers, but you must check by yourself if this is a double click or not :o( First time (if the colums need to autofit) Resize event of the column in left is fired, but this can't be something that you can trust, because the second DblClick isn't fired this event.
>>
>>Thanks for the reply Borislav.
>>
>>This is turning out to be a real pain. I started to look at the GridHitTest method but can't seem to figure it out :(
>>
>>Regards,
>>
>>Mike
>
>
>Hi Mike,
>
>Take a look at this for GridHitTest() example.
>
>Grid Cell setfocus on MouseMove (with Tooltips & Hilighter)
>
http://www.tek-tips.com/faqs.cfm?fid=4631>
>Regards
Hi Herman,
Thanks for the link. I'll see if it will help.
Mike