Connecting Tech Pros Worldwide Forums | Help | Site Map

How do I find user input in Datagridview?

Newbie
 
Join Date: Feb 2009
Posts: 10
#1: Oct 26 '09
Hi,

Probably I am asking something stupid. I have a datagridview in which I would like to be able to let the user change values of multiple columns by entering values (input 55.0) or additions(input +1.2)/decreases(input -1.2).....
How can I check what the exact input of the user is ?

At the moment I only use the input value (so for exampel 55.0) for which I use the DataGridView1.CurrentCell.Value which I put in all selected cells, but I would like to receive the exact user input (so eg '+1.2')

I hope you can help me !

Alfred

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,167
#2: Oct 27 '09

re: How do I find user input in Datagridview?


When a DataGridView cell is modified, I think a property of the cell is set to "dirty" or something like that.
It might be in the underlying DataTable that the Modified/Dirty setting is set.
Reply