<telerikGridView:GridViewDataColumn HeaderText="Sal" x:Name="ColonnaSal" Width="100" >
<telerikGridView:GridViewDataColumn.CellTemplate >
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.5*" />
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" x:Name="FldNSAL" Grid.ColumnSpan="2" HorizontalAlignment="Center" Text="{Binding nsal}" ></TextBlock>
<Image Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" Height="24" Width="24" Source="images/add_favority_24x24.png" Cursor="Hand">
<ToolTipService.ToolTip>
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Margin="5" >
<TextBlock HorizontalAlignment="Right" Text="Insertt" ></TextBlock>
<TextBlock HorizontalAlignment="Right" x:Name="FldInfo" Text="---" Width="80"></TextBlock>
</StackPanel>
</ToolTipService.ToolTip>
</Image>
<Image Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" Height="24" Width="24" Source="images/delete_favorite_24x24.png" Cursor="Hand">
<ToolTipService.ToolTip>
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Margin="5" >
<TextBlock HorizontalAlignment="Right" Text="Remove:" ></TextBlock>
</StackPanel>
</ToolTipService.ToolTip>
</Image>
</Grid>
</DataTemplate>
</telerikGridView:GridViewDataColumn.CellTemplate>
</telerikGridView:GridViewDataColumn>
so I have a ROW, with an Image, with a tooltip with a TextBlock.
I need to access to that textblock (X:Name="FldInfo") to write some information, but i cannot.
I try with
RowLoaded event to access to all row:
Public
Sub GrigliaDettagli_RowLoaded(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.GridView.RowLoadedEventArgs)
Dim
riga As Telerik.Windows.Controls.GridView.GridViewRowItem
riga = e.Row
Dim a As List(Of TextBlock) = riga.ChildrenOfType(Of TextBlock)()
Dim ObjTesto As TextBlock = a.Where(Function(tb) tb.Name = "FldInfo").FirstOrDefault
end sub
but ObjTesto return NOTHING
Thanks in Advance.
Paolo
