I have a datagrid in VB.NET class. The cells are editable. Is there any way to trigger a function when each of the cells are edited?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, the CellValueChanged Event:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellvaluechanged.aspx
EDIt as per your comment:
Yes you could save the current value to a class level variable on BeginEdit and retreieve it in the CellValueChanged event: