We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

datagrid capture keys to copy currentcell to next row

Thread ID:

Created:

Platform:

Replies:

13743 May 9,2004 04:32 AM Windows Forms 0
loading
Tags: FAQ
dhxx
Asked On May 9, 2004 04:32 AM

Hello, I have a windows form with 3 datagrids on it, bound to the same dataview. I want to capture following keystrokes : When the user presses "*" I want the value of the currentcell to be copied into the following row of the same column. When the user presses "+" I want the value of the currentcell to be incremented with one and copied into the following row in the same column. This means the following sequence of events : 1) check if the user has pressed "*" or "+" 2) copy the value (or value + 1) of the grids currentcell (or bound dataviewfield) 3) move to the next row and make the datagridcell in the same colum the currentcell and do paste the keydown or keypress events of the datagrid don't seem to work to capture "*" or "+" ? Any examples of how to get this work ?

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;