Solved

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

Posted on 2014-03-20
3
207 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

861 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