Solved

What is the best event to use in a DataGridView to determine cell position?

Posted on 2014-03-20
3
206 Views
Last Modified: 2014-03-28
I am trying to figure out the best Event to use in a DataGridView to determine what cell the cursor is in at the point of hitting the enter/return key.

What I am doing is reading a Digital Multimeter and retrieving a decimal value. The cell at which I am in upon hitting the enter/return key needs to contain that decimal value from the DMM. Hence, the processing needs to go in that event.
0
Comment
Question by:BlakeMcKenna
3 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 39942911
Either CellStateChanged or CellValidating should serve.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39944783
I think you need the KeyPress event.
0
 

Author Comment

by:BlakeMcKenna
ID: 39945113
I'll give it a shot....
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question