SfDataGrid loadmoreview I want to hide the top border how to do?

 When I set LoadMoreBackground to transparent, the line above appears. How can I remove it?

<Style TargetType="sfgrid:SfDataGrid">

     <Setter Property="AutoGenerateColumnsMode" Value="None"/>

     <Setter Property="CanMaintainScrollPosition" Value="True"/>

     <Setter Property="SortingMode" Value="None"/>

     <Setter Property="BackgroundColor" Value="Transparent"/>

     <Setter Property="AutoGenerateColumnsMode" Value="None"/>

     <Setter Property="HeaderGridLinesVisibility" Value="None"/>

     <Setter Property="DefaultStyle">

         <sfgrid:DataGridStyle ColumnResizingIndicatorColor="{StaticResource SecondColor}" HeaderRowBackground="{StaticResource PrimaryColorClubsync}"

               HeaderRowTextColor="{StaticResource TextColorPrimary}" RowBackground="{StaticResource ThirdColor}"

               GridLineStrokeThickness="5" GridLineColor="{StaticResource AppBackground}"

               SelectionBackground="{StaticResource PrimaryColorClubsync}" CurrentCellBorderColor="Transparent"

               CurrentCellBorderWidth="0" CurrentRowHighlightColor="{StaticResource FourthColor}"

               LoadMoreBackground="Transparent" LoadMoreButtonBackground="{StaticResource ButtonEnableBackgroundColor}"

               LoadMoreButtonTextColor="{StaticResource ButtonEnableTextColor}" LoadMoreIndicatorColor="{StaticResource SecondColor}"/>

     </Setter>


 </Style>


Attachment: z6592534566313_8b2b039741ecd9a944a1cc11f2e81a5d_eb96b476.jpg

1 Reply

RM RiyasHameed MohamedAbdulKhader Syncfusion Team May 12, 2025 02:17 PM UTC

We have reviewed your reported query and would like to inform you that your requirement can be achieved by using a CustomLoadMoreView. We have attached a sample and provided the relevant code snippet below for your reference:

sfdatagrid.LoadMoreView = new CustomLoadMoreView();

public class CustomLoadMoreView : DataGridLoadMoreView

{

      protected override void OnDraw(ICanvas canvas, RectF dirtyRect)

      {

           return;

      }

}

We hope this helps. If you have any further questions, please feel free to ask.

Regards,
Riyas Hameed M


Attachment: DataGridMAUI_12e24d60.zip

Loader.
Up arrow icon