We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add new row when binding to SfDataPager

Thread ID:





132197 Aug 19,2017 06:16 AM UTC Aug 29,2017 05:21 AM UTC WPF 3
Tags: SfDataGrid
Edwin Kurniawan
Asked On August 19, 2017 06:16 AM UTC

When I bind my sfdatagrid's itemsource to SfDataPager, clicking on the add new row is not doing a thing.
Here's my Xaml :

<sf:SfDataGrid x:Name="dgFileStorage" ItemsSource="{Binding ElementName=pagerDgFileStorage, Path=PagedSource}" Height="Auto" AutoGenerateColumns="False" AllowDeleting="False" AllowEditing="False" AllowResizingColumns="True" AddNewRowPosition="Top">
                    <sf:GridTextColumn MappingName="StorageName" HeaderText="Storage Name" ColumnSizer="Star" TextWrapping="WrapWithOverflow" Width="200" />
                    <sf:GridTextColumn MappingName="FolderPath" HeaderText="Folder Path" ColumnSizer="Star" TextWrapping="WrapWithOverflow" Width="250" />
                    <sf:GridTextColumn MappingName="UserName" HeaderText="Username" TextWrapping="WrapWithOverflow" Width="200" />
                    <sf:GridTextColumn MappingName="StorageSize_Gb" HeaderText="Storage Size" ColumnSizer="Auto" DisplayBinding="{Binding Path=StorageSize_Gb, StringFormat='{}{0:N2} GB'}" TextAlignment="Right" />
                    <sf:GridTextColumn MappingName="AvailableSize_Gb" HeaderText="Available Size" ColumnSizer="Auto" DisplayBinding="{Binding Path=AvailableSize_Gb, StringFormat='{}{0:N2} GB'}" TextAlignment="Right" />
                    <sf:GridDateTimeColumn MappingName="CreateDate" HeaderText="Create Date" ColumnSizer="Auto" Pattern="CustomPattern" CustomPattern="dd MMM yyyy hh:mm" />
                    <sf:GridDateTimeColumn MappingName="ModifyDate" HeaderText="Modify Date" ColumnSizer="Auto" Pattern="CustomPattern" CustomPattern="dd MMM yyyy hh:mm" />
            <sf:SfDataPager x:Name="pagerDgFileStorage" PageSize="15" Source="{Binding Detail}"/>

Gnanasownthari Thirugnanam [Syncfusion]
Replied On August 21, 2017 06:18 PM UTC

Hi Michael, 

We have analyzed your query, we are regret to inform you that we don’t have the AddNewRow support while using SfDataPager. 

Please refer the below UG link: 

Gnanasownthari T. 

Edwin Kurniawan
Replied On August 25, 2017 11:19 AM UTC

Oh my bad, i miss reading that part.

Thx for the info.

Gnanasownthari Thirugnanam [Syncfusion]
Replied On August 29, 2017 05:21 AM UTC

Hi Michael, 
Thanks for your update. 
Please let us know if you need any further assistance. 
Gnanasownthari T. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon