Home All Groups Group Topic Archive Search About

detect clicked column in datagrid

Author
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

Author
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
Author
4 Apr 2005 5:15 PM
Sam
I found out :


intcolNum = dataGrid1.CurrentCell.ColumnNumber;

int rowNum = dataGrid1.CurrentCell.RowNumber;