Hi:
I'd like to set/build the RadGridView's RowDetailsTemplate programmatically. Here is some code but I get an error message
"DependencyProperty Telerik.Windows.Controls.GridView.GridViewDataControl. RowDetailsTemplate cannot be set on an object of type System.Windows.DataTemplate."
I'd like to set/build the RadGridView's RowDetailsTemplate programmatically. Here is some code but I get an error message
"DependencyProperty Telerik.Windows.Controls.GridView.GridViewDataControl. RowDetailsTemplate cannot be set on an object of type System.Windows.DataTemplate."
detailsViewTemplate =
new DataTemplate();
detailsView =
new SearchDetails();
detailsView.DataContext =
this.GridView.SelectedItem;
detailsViewTemplate.SetValue(
RadGridView.RowDetailsTemplateProperty, detailsView); //ERRORS out
this.GridView.RowDetailsTemplate = detailsViewTemplate;
thanks
--tolga