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

DataGrid.Click Event

P: n/a
Hi,

I used a datagrid control to populate the data, and used DataGrid.Click or
DataGrid.DoubleClick events to handle a function. However, the event is only
fired when clicking on the NON-DATA area, i.e., if clicking on the data
cells, the event does nothing. How to get it working?

Thanks in advance
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Additional information:

The event fired only when clicking on the border of the cell. I want that it
fires when clicking on the cell as well.

"Li Pang" wrote:
Hi,

I used a datagrid control to populate the data, and used DataGrid.Click or
DataGrid.DoubleClick events to handle a function. However, the event is only
fired when clicking on the NON-DATA area, i.e., if clicking on the data
cells, the event does nothing. How to get it working?

Thanks in advance

Nov 21 '05 #2

P: n/a
Li,

The event you need to use is "CurrentCellChanged"

Hope this helps,

Mike
"Li Pang" wrote:
Additional information:

The event fired only when clicking on the border of the cell. I want that it
fires when clicking on the cell as well.

"Li Pang" wrote:
Hi,

I used a datagrid control to populate the data, and used DataGrid.Click or
DataGrid.DoubleClick events to handle a function. However, the event is only
fired when clicking on the NON-DATA area, i.e., if clicking on the data
cells, the event does nothing. How to get it working?

Thanks in advance

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.