|
-
Sep 27th, 2011, 09:47 AM
#1
Thread Starter
Fanatic Member
format datagridview cell
As I am typing a value into a cell of the datagridview in winform, I would like to check the value entered.
For example in a cell of the datagridview I enter 3 and then m
I basically would like to see if the user has entered m or t and if so multiply the number by 1000000 or 1000 respectively.
Is there an event to check for the text AS it is being entered into the cell?
Thanks
-
Sep 27th, 2011, 11:53 PM
#2
Re: format datagridview cell
There's a reason that most things don't happen in a DGV until the user changes cells. What happens in your case if the user enters 3, then m, then backspace, then t? You don't know what the user is going to enter until they have finished entering it, so why not wait until then to act on it?
-
Sep 28th, 2011, 01:23 AM
#3
Thread Starter
Fanatic Member
Re: format datagridview cell
Is it possible to have a keypress event for only one column of the datagridview?
Last edited by arkiboys; Sep 28th, 2011 at 01:29 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|