Home Forums WPF controls Xceed DataGrid for WPF Handling Events

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24322 |

    Control: Xceed Data Grid For WPF v 1.2
    IDE: Visual Studio 2008 Team Edition Beta 2
    OS: Windows XP SP2

    I’ve been doing some looking around on the forums for a solution with regards to double clicking. It seems as though once a grid is set to read only it no longer fires MouseDoubleClick events, as well as several other click events. Now, I found a post talking about this yesterday, and one of the Xceed Staff members was kind enough to inform me that it was because the click events were being absorbed lower into the grid (by the cells and rows and columns themselves). However, he never mentioned exactly how I would go about attaching listeners to the given culprits.

    Furthermore, using AttachHandler(DataGridControl.MouseDoubleClickEvent, MyHandler, true)
    does NOT work to listen for the double click event, which I imagine that it should so long as the events are being routed…

    So to conclude, what I’d really like is more information regarding which properties I should be seeking in order to attach listeners for things like clicking and double clicking on a given cell.

    -Duane

    PS
    Please note that I did not use PreviewMouseDoubleClickEvent. I do not want any of the preview events, because I want the item the user is clicking on to be selected BEFORE I recieve the event. I want to do something with the selected item based on a double click.

    Thank you

    Imported from legacy forums. Posted by Duane (had 602 views)

    Xceed Support
    Member
    Post count: 5658

    Does the answer in this post work as a solution for you?

    http://forums.xceed.com/forums/ShowPost.aspx?PostID=6803

    Imported from legacy forums. Posted by Jenny [Xceed] (had 218 views)

    User (Old forums)
    Member
    Post count: 23064

    Yes, I was just there and about to come post the link here myself.

    Thank you.

    Imported from legacy forums. Posted by Duane (had 453 views)

    Xceed Support
    Member
    Post count: 5658

    <code>
    <Style TargetType=”{x:Type xcdg:DataRow}”>
    <EventSetter Event=”MouseDoubleClick”
    Handler=”DataRow_MouseDoubleClick”/>
    </Style>
    </code>

    Simpler, and doesn’t involve the mysterious storyboards!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 3694 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.