DataGridView and CellContentDoubleClick event

  • Thread starter Thread starter beaker
  • Start date Start date
B

beaker

Hello,

I have a DataGridView and I want to handle the CellContentDoubleClick
event. No problem so far, but when I double click on a cell the
CellContentDoubleClick event only fires if I double click over text, and
not over any 'white space' in the cell. How do I get the event to fire
when I click anywhere in the cell?

(I have SelectionMode set to FullRowSelect if that makes any difference).

Many thanks,

Gary
 
try to add onclick attributes to cell attribute to cell on dataitembound
that will solve your problem.
look at the view source and find what onclick attribute you have to add to
table cell.
 
If it is does not work then using workaround, means you always give some
default values and without leaving it empty.

chanmm
 
Esref said:
try to add onclick attributes to cell attribute to cell on dataitembound
that will solve your problem.
look at the view source and find what onclick attribute you have to add to
table cell.
thanks, I'll try this
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top