detect clicked column in datagrid
4 Apr 2005 4:22 PM
Sam
Hi,
How can I detect if the cell on which the user clicked, belong to which
column of my datagrid ?
say if the user clicks on a cell in the second column, I would be able
to detect it is the second column.
Thx
4 Apr 2005 4:37 PM
Cor Ligthert
4 Apr 2005 4:57 PM
Sam
not really :(
my main issue here is to detect the mouse click on a cell, and then to
figure out which column it belongs to.
thx
4 Apr 2005 5:15 PM
Sam
I found out :
intcolNum = dataGrid1.CurrentCell.ColumnNumber;
int rowNum = dataGrid1.CurrentCell.RowNumber;

Other interesting topics