By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,032 Members | 1,183 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,032 IT Pros & Developers. It's quick & easy.

detect clicked column in datagrid

P: n/a
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.


Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies

P: n/a

P: n/a
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.

Nov 21 '05 #3

P: n/a
I found out :
intcolNum = dataGrid1.CurrentCell.ColumnNumber;

int rowNum = dataGrid1.CurrentCell.RowNumber;

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.