views:

206

answers:

1
<local:CustomDataGrid Grid.Row="0"  Height="200"
                          IsReadOnly="True"  x:Name="dgCaseHistory"
                          AutoGenerateColumns="False">
        <local:CustomDataGrid.RowDetailsTemplate>
            <DataTemplate>
                <Grid  Background="Black" Height="{Binding ElementName=dgCaseHistory, Mode=TwoWay,Path=Height}">
                    <TextBlock Text="testestestest" />
                </Grid>
            </DataTemplate>
        </local:CustomDataGrid.RowDetailsTemplate>
        </local:CustomDataGrid>
A: 

Try binding to the ActualHeight property.

<Grid Height="{Binding ElementName=dgCaseHistory, Mode=TwoWay, Path=ActualHeight}"> 
    <TextBlock Text="testestestest" /> 
</Grid>

If not, check the Output Window in Visual Studio for any DataBinding errors and update your question with those details.

bendewey
I don't think you really want `Mode=TwoWay`
Gabe
Still the same, not binding.
xscape
it has no DataBinding errors
xscape