This is a migrated thread and some comments may be shown as answers.

Binding data to UserControl inside RowDetailsTemplate

1 Answer 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Andrea asked on 07 Nov 2011, 04:07 PM
Hi,
I am using a radGridView with a RowDetailsTemplate.
This data template contains a UserControl whi has 2 DependencyProperties, whose values I Bind to the Grid ItemsSource

<Controls1:HistoryDataList PathMapId="{Binding Id}" History="{Binding History}"/>

Problem:
The properties are never set.

if I use the same control inside on of the Grid's columns then it works fine, so it has nothing to do with the UserControl, but rather with the Bindning value not being called when inside teh RowDetailTemplate

Any Idea?

This is how I devlare my properties:

 

 

public static readonly DependencyProperty PathMapIdProperty = DependencyProperty.Register("PathMapId", typeof(Guid), typeof(HistoryDataList), null);


public
Guid PathMapId

{
get{return (Guid)this.GetValue(PathMapIdProperty);}
set{this.SetValue(PathMapIdProperty, value);}

}

 

 

 

 

 

 

 

 



1 Answer, 1 is accepted

Sort by
0
Daní
Top achievements
Rank 1
answered on 07 Nov 2011, 04:14 PM
Hi Andrea

Can you see any Binding error in Output window when you run your app in debug mode?
Tags
GridView
Asked by
Andrea
Top achievements
Rank 1
Answers by
Daní
Top achievements
Rank 1
Share this question
or