Capture the ColumnHeaderMou seClick event.
Or capture the CellClick event, and check the rowindex in the
DataGridViewCel lEventArgs. If it's -1, they clicked on the header.
RobinS.
GoldMail, Inc.
-------------------------------
"Andrus" <kobruleht2@hot .eewrote in message
news:OA9s33jcIH A.1168@TK2MSFTN GP02.phx.gbl...
>Otherwise, you can try handling the sort stuff yourself. You could try
>capturing the column header click event, check to see what column it is,
>and sort it yourself.
>capturing the column header click event, check to see what column it is,
>and sort it yourself.
How to capture mouse click in grid column header ?
Grid OnMouseClick not not have such flag.
>
Andrus.
>
>
Leave a comment: