• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3184
  • Last Modified:

How can I alter Gridview Pager settings/style?

Experts,

I have too things I need to sort with my paging and need some help if any one can oblige. I'm using standard gridview pager with <pagerstyle> and <pagersettings>.

1. How can I chnage the style of the current page so it stands out more from the other numbers? At the moment its not bold and the rest are. I can't figure out where to alter this value.

 2. I have it set to Position="TopAndBottom" at the moment and the gridview is bound to a xmldatasource with BoundFields. Is there a way to move the header pager row below the column names?



Thanks for the input in advance,
Denis
0
Denisdh
Asked:
Denisdh
  • 4
  • 2
1 Solution
 
David RobitailleAnalyst ProgrammerCommented:
for no1
i did it myself using CSS
HeaderFooter class apply to the current page and the link one apply to the orhers pages
 for no 2

on each column: FooterText instead of header text
Gridview set ShowFooter="True"

.HeaderFooter
{
    background-color: #0066CC;
    color: #ffFFFF;
    font-weight: bold;
}
.HeaderFooter a:link
{
    color:#00FFFF; 
    text-decoration:underline
}
.HeaderFooter a:visited
{   
    color:#00FFFF; 
    text-decoration:underline
}
.HeaderFooter a:hover
{
    color:#00FFFF; 
    text-decoration:underline
}
.HeaderFooter a:active
{
    color:#00FFFF; 
    text-decoration:underline
}

Open in new window

0
 
David RobitailleAnalyst ProgrammerCommented:
I`m not sure it it was clear, don`t hesitate if you need precisions.
0
 
DenisdhAuthor Commented:
Thatnks for the input, I've solved No. 1 with your help but No. 2 just moves the header title below the data returned. What I want to do is move the pager row below the column titles.

Is this possible?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
David RobitailleAnalyst ProgrammerCommented:
ho!  i misunderstood.
I don`t think there is anyway to do that...
 
0
 
DenisdhAuthor Commented:
Thanks for the help. At least I got half it sorted.
0
 
David RobitailleAnalyst ProgrammerCommented:
Thanks for the grade.
I just found this. you might use something like this to change the index of the pager!!!!
http://forums.asp.net/t/1306923.aspx
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now