Greetings
I have a data grid with a Template Column, note this has a Button in the data template and this has a Visibility Converter. If no note exists then the button is not shown. All works fine for items in my List<T>.
However when used with On Demand Paging the rows the Pager adds; e.g if page size is 10 and my list contains 15 items then page 2 has 15 actual items plus 5 (blank) rows added by the pager. These rows ALL have the Button shown even if I set the visibility converter to only return Visibility.Collapsed.
How do I hook in to the added rows and hide the buttons?
<syncfusion:GridTemplateColumn
HeaderText="NOTES" MappingName="Note" MinimumWidth="110" AllowSorting="False" AllowFiltering="False" DisplayBinding="{Binding Note}">
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<AppBarButton Visibility="{Binding Note,Converter={StaticResource stringToVisibilityConverter}}"
Margin="0,0,12,0" Label="Note"
BorderBrush="Transparent"
FontSize="21" Foreground="Gold"
HorizontalAlignment="Center" VerticalAlignment="Center">
<AppBarButton.Icon>
<SymbolIcon Symbol="Preview"/>
</AppBarButton.Icon>
<Button.Flyout>
<Flyout>
<StackPanel Width="Auto">
<TextBlock x:Name="ValueTextBox" Text="{Binding Note}"/>
</StackPanel>
</Flyout>
</Button.Flyout>
</AppBarButton>
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn>