Declined
Last Updated: 14 Dec 2023 16:50 by ADMIN
ADMIN
Cody
Created on: 26 Jun 2013 17:33
Type: Feature Request
0
Get only visible text of a DataGridCell
Customer has a Silverlight DataGrid in which one of the cells uses a custom template like this:

<DataTemplate x:Key="ClaimInfoTemplate">
    <StackPanel Orientation="Horizontal">
        <TextBlock Text="{Binding Claim.m_Part1}" />
        <TextBlock Text="{Binding Claim.m_Part2}" Visibility="Visible" />
        <TextBlock Text="{Binding Claim.m_Part3}" Visibility="Visible" />
    </StackPanel>
</DataTemplate>

At run time parts 2 & 3 may be hidden i.e. Visibility = Collapsed. Currently DataGridCell.Text returns the text of only the first text block unconditionally. DataGridCell.CellText returns all three concatenated without regard to what is/isn't set visible. What they want is a non-coded method to verify only what's currently visible.
0 comments