【发布时间】:2010-07-23 11:49:06
【问题描述】:
After rendering full grid I need to change data context of selected Row since initially "simple" objects are filled as data source and when single item is selected (looking at RowDetailsVisibilityChanged event), then I want to change DataContext to complex object,这显示了比折叠行更多的详细信息。
使用 GridViewRowDetailsEventArgs.DetailsElement.DataContext 似乎可以解决在选择时在行下方展开的详细信息元素,但标题(列)保持不变,并且在更改 GridViewRowDetailsEventArgs.DetailsElement.DataContext 或 GridViewRowDetailsEventArgs.Row 时不会更新值。数据上下文。
(想象一下折叠行的列绑定到名称,其中名称为“John”,展开时,Row.DataContext 更改为属性名称为“John Dough”的对象,但列仍显示“John” )。
【问题讨论】:
标签: silverlight telerik datacontext radgrid radgridview