rhennink Posted February 25, 2023 Share Posted February 25, 2023 Hi, I would like to 'intercept' the UniStringGrid ColumnHeader doubleclick Event. I created a stringgrid, and created columns with the grdXXX.Columns.Add I get an dblclick event via the OnOjaxEvent, but checking the grdXXX.col it doesn't give the right value. Any Ideas? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 25, 2023 Share Posted February 25, 2023 Hello, Also this post may help you: Quote Link to comment Share on other sites More sharing options...
rhennink Posted February 25, 2023 Author Share Posted February 25, 2023 Hi, thnx for you quick answers. I already tried these ones, but it don't get this to work with the TUniStringGrid. When I DblClick the header column, I don't get the correct .col and .row index. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 25, 2023 Share Posted February 25, 2023 Make a simple testcase if possible, I will try to check. Quote Link to comment Share on other sites More sharing options...
rhennink Posted February 25, 2023 Author Share Posted February 25, 2023 Sure, I already did for myself 😉 thnx for your effort!! TestGridDblCLick.zip.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 25, 2023 Share Posted February 25, 2023 1 hour ago, rhennink said: I already tried these ones, but it don't get this to work with the TUniStringGrid. The above solution works. 1 hour ago, rhennink said: When I DblClick the header column, I don't get the correct .col and .row index. procedure TMainForm.grdDataAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin //mmoEvents.Lines.Add(eventname+' - '+grdData.Col.tostring+' '+grdData.row.tostring); if EventName = 'headerdblclick' then mmoEvents.Lines.Add(Params.Text) end; Quote Link to comment Share on other sites More sharing options...
rhennink Posted February 26, 2023 Author Share Posted February 26, 2023 yes! great and thnx!!! i din't look at the params 😉 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.