Hello:
I have an event in datagrid (method-id dgridRubricas_MouseDoubleClick) that works perfectly when I click with the mouse in a cell.
It turns out that when I click the mouse on the scroll bar to move down to the remaining data visualization, and make very fast, is considered a MouseDoubleClick and gives the following error "Null Reference Exception was unhandled".
What is the solucção to prevent this situation?
Best Regards
Albeto Ferraz
Hallo
Here my solution in a WPF program:
method-id KontoGrid_MouseDoubleClick.
procedure division using by value sender as type Object
by value e as type System.Windows.Input.MouseButtonEventArgs.
set KomtoItem to KontoGrid::Items::CurrentItem as type xyz
if KontoItem = null
goback
end-if
*> do processing
goback.
end method.
Regards
Werner Lanter
Hello:
I have an event in datagrid (method-id dgridRubricas_MouseDoubleClick) that works perfectly when I click with the mouse in a cell.
It turns out that when I click the mouse on the scroll bar to move down to the remaining data visualization, and make very fast, is considered a MouseDoubleClick and gives the following error "Null Reference Exception was unhandled".
What is the solucção to prevent this situation?
Best Regards
Albeto Ferraz
Hello,
Your solution is the perfect solution and solved my error.
Thanks.
Best regards
Alberto Ferraz