Hello Team,
I am facing an issue on SfDatagrid header data while grid itemsource changes on second time. I will attach the video of the issue with this forum. code is given below. I added only one column for your reference. By the way i tried without header template still same issue.
<syncfusion:SfDataGrid x:Name="dataGrid" Grid.Row="1" ItemsSource="{Binding ActiveApplications}" HorizontalScrollBarVisibility="Always" HeaderRowHeight="60"
VerticalScrollBarVisibility="Always" CellDoubleTapped="dataGrid_CellDoubleTapped" GridLinesVisibility="Both" HeaderGridLinesVisibility="Both"
AutoGenerateColumnsMode="None" SelectionMode="Single" NavigationMode="Row" Margin="0,0,0,20" >
<syncfusion:SfDataGrid.DefaultStyle>
<syncfusion:DataGridStyle RowFontFamily="PoppinsRegular" HeaderRowFontFamily="PoppinsSemiBold" RowFontSize="13"
HeaderRowBackground="#C9E8CB" HeaderRowTextColor="{StaticResource Secondary}" RowTextColor="#212121"/>
</syncfusion:SfDataGrid.DefaultStyle>
<syncfusion:SfDataGrid.Columns>
<!--Entity-->
<syncfusion:DataGridImageColumn CellPadding="5" MappingName="ApplicationType.ExternalEntity.LogoURL"
HeaderText="Entity" >
<syncfusion:DataGridImageColumn.HeaderTemplate>
<DataTemplate>
<StackLayout Orientation="Horizontal" HorizontalOptions="Center" Spacing="10" VerticalOptions="Center">
<Label Text="Entity" TextColor="{StaticResource Secondary}" FontFamily="PoppinsSemiBold" CharacterSpacing=".2" />
</StackLayout>
</DataTemplate>
</syncfusion:DataGridImageColumn.HeaderTemplate>
</syncfusion:DataGridImageColumn>
</ syncfusion:SfDataGrid>
Hi Anurag Sukumaran,
After reviewing the provided code snippet, we've created a basic sample
(without a header template, as per your indication that the issue occurred in
both cases) and extensively tested it. However, we were unable to reproduce the
reported issue on our end. In this sample, we changed the ItemsSource through a
button click event, and the header remained visible in the view as intended.
Based on the video and image references provided, we understand that you are encountering an issue in your sample, and we are dedicated to resolving it.
We have attached the sample and a video output for your reference. Please review the attached sample on your end.
To provide
further assistance, could you please examine the attached sample? If there are
any missed configurations or adjustments necessary to replicate the issue you've
described, we kindly request you to modify the sample accordingly. Your
collaboration will greatly assist us in conducting a thorough investigation to
deliver an appropriate solution.
Regards,
Tamilarasan