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
1385
Record MouseOver
posted

Hi,

I am looking for the event which I can use to do something if the Mouse is over a new Record in a grid. I don't want to use "RecordActivated", because I do not want to click on the Record. Which event is fired if a Record is "highlighted"?

Thanks for helping!

Gawain

  • 30945
    Offline posted

    Hello Gawain,

     

    I am just checking if my post was helpful for you.

     

    If you require any further assistance please do not hesitate to ask.

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics, Inc.

    www.infragistics.com/support

  • 30945
    Verified Answer
    Offline posted

    Hello Gawain,

     

    The event that you can use is DataRecorPresenter’s MouseEnter event. You can handle this event by creating a style for the DataRecordPresenter with an EventSetter for this event. You can put the style in the Resources section of the XamDataGrid as follows:

     

                <igDP:XamDataGrid.Resources>

                    <Style TargetType="{x:Type igDP:DataRecordPresenter}">

                        <EventSetter Event="MouseEnter" Handler="Record_MouseEnter"/>

                        <EventSetter Event="MouseLeave" Handler="Record_MouseLeave"/>

                    </Style>

                </igDP:XamDataGrid.Resources>

     

    And in the code behind the event handler looks like this:

     

            void Record_MouseEnter(object sender, MouseEventArgs e)

            {

            }

     

    I have created a sample application for you that demonstrates the described above.

     

    If you require any further assistance on the matter please do not hesitate to ask.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics, Inc.

    www.infragistics.com/support

    XamDataGridMouseOverRecord.zip