Hi,
i want to get the coressponding GridViewRow when i did a DoubleClick insinde RadGridView.
Insinde my RadGridView's MouseDoubleClick event handler i have the following code
parentRow is always null.
I thought ParentOfType<T> walks up the visual tree until it finds a type of T regardless of how many
levels it has to walk up !?
Did i get something wrong ?
I am using WPF Q2 2012 controls.
Kind Regards
Kim
i want to get the coressponding GridViewRow when i did a DoubleClick insinde RadGridView.
Insinde my RadGridView's MouseDoubleClick event handler i have the following code
var s = e.OriginalSource as FrameworkElement;
var parentRow = s.ParentOfType<GridViewRow>();
if (parentRow != null)
{
MyDataItem item = (MyDataItem)parentRow.Item;
}
parentRow is always null.
I thought ParentOfType<T> walks up the visual tree until it finds a type of T regardless of how many
levels it has to walk up !?
Did i get something wrong ?
I am using WPF Q2 2012 controls.
Kind Regards
Kim