Jump to content

String Grid - mouse down - which cell ?


david_navigator

Recommended Posts

I need to find out which string grid cell the user clicked in. 
With the VCL there's the MouseToCell method which can be used with the Grid OnMouseDown event, but that doesn't exists for the UniStringGrid.

 

I tried adding an ExtEvent for cellmousedown, hoping that would give me the correct info

function cellmousedown(sender, td, cellIndex, record, tr, rowIndex, e, eOpts)
{
        ajaxRequest(sender, '_cellmousedown', ['CellIndex='+cellIndex,'RowIndex='+rowIndex]);

}

But the OnAjaxEvent doesn't get called with that EventName.

So how can I find out which cell the user just clicked in (The OnSelectCell is no use for me as I want to count the number of clicks in a cell and OnSelectCell only gets called when the cell changes).

 

Thanks

 

David

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...