Home Forums WPF controls Xceed DataGrid for WPF WPF Datagrid

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

    Hi,

    How to include the search option in the wpfdatagrid?
    how to get the row click event?

    Thanks in advance

    Imported from legacy forums. Posted by senthil (had 2400 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    There is no search option built in the DataGridControl at the moment. This feature is on our todo list (but we have no estimate on the expected delivery).

    There is no “Click” event on DataRow (as for most of the WPF controls)… However, you can handle the PreviewMouseUp/Down, PreviousMouseLeftButtonUp/Down, PreviewMouseRightButtonUp/Down, MouseUp/Down, MouseLeftButtonUp/Down, MouseRightButtonUp/Down, PreviewMouseDoubleClick and MouseDoubleClickEvents.

    For any of these event, you can register class handlers using the function “EventManager.RegisterClassHandler()”.

    If you absolutely need the “Click” event… You can create your own DataRow derived class emulate the button click behavior (which is to capture the mouse on the MouseDown event and send the Click event when a MouseUp occurs on the DataRow with the mouse captured ). You can refer to the ButtonBase class for more details on this.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 320 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks for ur information.
    How can i get the particular row or cell value when i click the particular row. For this any Event there?

    Thanks in advance

    Imported from legacy forums. Posted by senthil (had 3612 views)

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