C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » WPF »

How to handle wpf datagrid row double click event?


Posted Date: 19 Oct 2009      Posted By: Viji RAJKUMAR      Member Level: Diamond     Points: 1   Responses: 0



Hi All,

How to handle WPF datagrid row double click event? I tried with PreviewMouseClick. But it is getting throwed when clicked on header also.


Private Sub dbGrid_PreviewMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles dbGrid.PreviewMouseDoubleClick
If Not dbGrid.SelectedItem Is Nothing Then
MsgBox(DirectCast(DirectCast(DirectCast(dbGrid.SelectedItem, System.Object), System.Data.DataRowView).Row, System.Data.DataRow).ItemArray(0).ToString)
End If
e.Handled = True

End Sub


How to handle it only for datagrid row?


Regards

VIJI RAJKUMAR
Pls rate my Answer if it was supportive
http://vijirajkumar.blogspot.com





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply
You must Sign In to post a response.
Next : How to bind the data to datagrid in wpf in c#
Previous : How to delete the row by clicking Checkbox in DataGrid in WPF
Return to Discussion Forum
Post New Message
Category: WPF

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use