locked
DataGrid horizontal scroll event RRS feed

  • Question

  • how do i get DataGrid horizontal scroll event

    Monday, October 11, 2010 8:18 AM

Answers

  • Hi,

    Please following a few steps below and you will get the horizontal scroll Event:

    1. Open your project in Blend.

    2. Right Click your DataGrid -> Edit Template -> Edit a Copy.

    3. In the Create Style Resource, you can select either Application or This document. Click OK button.

    4. In the Object and Timeline panel, just expand the Template and find the HorizontalScrollbar.

        And then click the Events tab  in the properties window and you will see a Scroll Event.

    5. Add an event handler for this Scroll Event and you will fire the event when you scroll the horizontal scrollbar in the DataGrid.

    Hope to help you.

     

    Regards

    Wednesday, October 13, 2010 6:24 AM

All replies

  • Cry

    Tuesday, October 12, 2010 1:28 AM
  • Hi,

    Please following a few steps below and you will get the horizontal scroll Event:

    1. Open your project in Blend.

    2. Right Click your DataGrid -> Edit Template -> Edit a Copy.

    3. In the Create Style Resource, you can select either Application or This document. Click OK button.

    4. In the Object and Timeline panel, just expand the Template and find the HorizontalScrollbar.

        And then click the Events tab  in the properties window and you will see a Scroll Event.

    5. Add an event handler for this Scroll Event and you will fire the event when you scroll the horizontal scrollbar in the DataGrid.

    Hope to help you.

     

    Regards

    Wednesday, October 13, 2010 6:24 AM
  • Thanks Cool

    Wednesday, October 13, 2010 7:34 AM