This question is locked. New answers and comments are not allowed.
Hi,
I would like to get hold of the "data item behind the click" on a RadGridView. This is not working for me, the event is not getting triggered:
I would like to get hold of the "data item behind the click" on a RadGridView. This is not working for me, the event is not getting triggered:
| <gridView:RadGridView x:Name="dgPeople" |
| RowIndicatorVisibility="Collapsed" |
| ShowGroupPanel="False" |
| ItemsSource="{Binding SelectedTeam.People}" |
| MouseLeftButtonUp="RadGridView_MouseLeftButtonUp" /> |
| private void RadGridView_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e) |
| { |
| UIElement clickedElement = e.OriginalSource as UIElement; |
| if (clickedElement != null) |
| { |
| GridViewRow row = clickedElement.ParentOfType<GridViewRow>(); |
| } |
| } |
EDIT:
Further testing has shown that the click event is triggered when I am not clicking on top of a populated cell or header. It works when I click elsewhere on the grid.
Also, based on this post, I should have some extension methods available to me. I am not seeing these in intellisense.
I am using Telerik.Windows.Controls.GridView.dll v2009.3.1103.1030
Mark
