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
235
ClickCell and MouseUp events problem
posted

Hi

I am having trouble with the ClickCell grid event sometimes not firing. It can work 100 times with no problem and then miss 1 in 4 for several minutes.

I have tried using the following code but the same problem seems to be happening:

private void grdDiary_MouseUp(object sender, MouseEventArgs e)
{
       UIElement aUIElement = grdDiary.DisplayLayout.UIElement.ElementFromPoint(new Point(e.X, e.Y));
       UltraGridCell cell = (UltraGridCell)aUIElement.GetContext(typeof(UltraGridCell));
       if (cell != null)
       {       etc...

When the MouseUp method fails to work (which again happens randomly) the UltraGridCell cell object is null. CellClickAction is set to RowSelect.

Any suggestions would be very much appreciated.

Alan