Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1015
Generating a WinGrid DoubleClick event
posted

I have some code in a DoubleClick event. I want to automatically call that event when the user enters another grid cell. So I am doing the following in the AfterCellActivate event

Grid_DoubleClick(Me, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs.Empty)

However, when this code is executed, I get the following error message:

Unable to cast object of type "System.EventArgs" to "Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs".

I don't understand this error message. First, I'm not sending a System.EventsArg. Second, the signature for the DoubleClick event requires the Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs which I'm sending.

So why am I getting this error message.

Thanks

Parents Reply Children
No Data