Changing Color of page-numbers in DataGrid

  • Thread starter Thread starter Anup
  • Start date Start date
A

Anup

Hi group,

I m using protected System.Web.UI.WebControls.DataGrid (ASP.NET 1.x)


I have set the "pager style mode" to "NumericPages"


with "AllowingPaging=true"


Application works fine but the Problem is:-


I am not able change colour for selected page-number and visited
page-numbers.
(so that user could know the pager number which is being displayed)


I tried :-


dataGridDisplay.PagerStyle.ForeColor=System.Drawing.Color.Red; on


PageIndexChanged event but this statment is changing colour of all
pagenumbers.


Please let me know if there is any way out.


Best Regards,


Anup
 
Hi group,

I m using protected System.Web.UI.WebControls.DataGrid (ASP.NET 1.x)
I have set the "pager style mode" to "NumericPages"
with "AllowingPaging=true"
Application works fine but the Problem is:-
I am not able change colour for selected page-number and visited
page-numbers.
(so that user could know the pager number which is being displayed)
I tried :-
dataGridDisplay.PagerStyle.ForeColor=System.Drawing.Color.Red; on
PageIndexChanged event but this statment is changing colour of all
pagenumbers.
Please let me know if there is any way out.
Best Regards,

Anup

Anup,

as far as I know: you can't. The paging-style is rather simplistic.

Leon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top