How to Change DetailsView Pager Text in ASP.Net C# ?

In this asp.net post we learn how to change DetailsView control Pager Text in ASP.Net C#.

Design the ASP.Net web form with one Button Control and one DetailsView control in ASP.Net.

First set AllowPaging =True of DetailsView control.

Change DetailsView Pager Text in ASP.Net C#

Change DetailsView Pager Text in ASP.Net C#

Now, Set DetailsView control Mode property = NextPreviousFirstLast.

Change DetailsView Pager Text in ASP.Net C#

Change DetailsView Pager Text in ASP.Net C#

Change DetailsView Pager Text in ASP.Net C#

Change DetailsView Pager Text in ASP.Net C#

Write the Below server code in Button Click event.

 protected void btnSave_Click(object sender, EventArgs e)
{
DetailsView1.PagerSettings.FirstPageText = “First”;
DetailsView1.PagerSettings.NextPageText = “Next”;
DetailsView1.PagerSettings.PreviousPageText = “Previous”;
DetailsView1.PagerSettings.LastPageText = “Last”;
}

 

Change DetailsView Pager Text in ASP.Net C#

Change DetailsView Pager Text in ASP.Net C#

Change DetailsView Pager Text in ASP.Net C#

Change DetailsView Pager Text in ASP.Net C#

I hope this DetailsView control Change Pager Text in ASP.Net will help you..

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + 8 =


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">