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
1020
Problem with MouseEnterElement Event.
posted

Hi Friends,

I have used to following code in MouseEnterElement event of UltraGrid.

UltraGridCell cell = e.Element.GetContext(typeof(UltraGridCell)) as UltraGridCell;

I always get the cell as null .

Please help.

Regards,
Sid. 

Parents
  • 20872
    Suggested Answer
    Offline posted

     

    Hello Sid,

    Could you please let me know what version of our controls you are using? I have try the following code snippet and it does work for me.

    private void ultraGrid1_MouseEnterElement(object sender, Infragistics.Win.UIElementEventArgs e)
            {
             UltraGridCell cell = e.Element.GetContext(typeof(UltraGridCell)) as UltraGridCell;
             if (cell != null)
             {
                //Some logic
             }
            }

    Are you sure that you are attaching this event to your UltraGrid?

    Sincerely,

    Danko

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

     

Reply Children
No Data