I want to do a sort of the data in a MSHFlexGrid and only when the user clicks in the ColHeader. How can I detect that the user clicked in the ColHeader and the correct column clicked in?
I want to do a sort of the data in a MSHFlexGrid and only when the user clicks in the ColHeader. How can I detect that the user clicked in the ColHeader and the correct column clicked in?
All you need to do to check that the user clicked on the header column is to have a condition that checks that the fgrid.MouseRow = 0, and to read the column clicked on use fgrid.MouseCol. Both are 0 based. Cheers:cool: