I have a radgridview with a nested radgridview in the RowDetails.
I would like to bind a column width in the nested gridview to a
column ActualWidth in the parent gridview. I tried using a simple
elementName binding and giving the column a name, but that doesn't
seem to work. Is there a better way to do this, or another way to
reference the grids column that I am missing.
Cheers,
James
<
DataTemplate
x:Key
=
"DetailGrid"
>
<
telerik:RadGridView
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Width
=
"{Binding ActualWidth, ElementName=MainGridFirstColumn}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
DataTemplate
>
<
telerik:RadGridView
Name
=
"MainGrid"
RowDetailsTemplate
=
"{DynamicResource DetailGrid}"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Name
=
"MainGridFirstColumn"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>