Jump to content

UnistringGrid Column Header doubleclick event


rhennink

Recommended Posts

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?

Link to comment
Share on other sites

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;

image.png.0b4371fe01110d4a98a4946c4407f868.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...