Sunday, March 11, 2012

'DataGridView1_CellContentClick' Doesn't Work For All Cells.

SQL 2005 Express (Visual Basic 2005 Professional):

I have a DataGridView with 'ReadOnly' set to true in the Properties Window.

I would like to have it perform an operation when any cell is clicked.

In .vb [Design], I double-clicked each cell, and, it jumped to 'DataGridView1_CellContentClick'
where I entered the instruction to perform.

But, it only works for some of the cells in the middle of the DataGridView. The rest of the cells do nothing when they are double-clicked.

Hi furjaw,

This forum is for problems with using SQL Express - this seems like a problem you're having with VB and so we won't be able to answer it (at least the MS folks on the forum). Could you take the question to the VB forums where you're much more likely to get a good answer?

Thanks