0
votes

I have a datagridview bound to a bindingsource (which is bound to a dataview). Virtual mode is on.

I am trying to catch any row edit cancel (esc key) that occurs in the grid so I can log it.

My testing shows that when a new row is added to the datagridview but uncommitted to the datasource I can catch this event. For any existing rows in the datasource this event is not raised.

Is there another event I need to use for the existing rows? Or do I need to do something other than turn on virtual mode in my grid?

1

1 Answers

0
votes

try this it will can help you. http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cancelrowedit(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2

I am trying to do some similar like you do so I found this information. It did help me. Regards,