Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

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

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
BlakeMcKenna
Asked:
BlakeMcKenna
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
Either CellStateChanged or CellValidating should serve.
0
 
CodeCruiserCommented:
I think you need the KeyPress event.
0
 
BlakeMcKennaAuthor Commented:
I'll give it a shot....
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now