Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0GridView PagerStyleGridView PagerStyle
Previous
 
Next
New Post
2/21/2008 3:53 PM
 

I've brought this up before but the issue remains and I can't find the problem.

Environment : VS 2005 Standard, DNN 480 Install version, VWD 2008 Express, SQL 2005 Express

Using a fresh install of DNN and VS 2005, I create a new web user control with a GridView or FormView in it. I can change all the properties of them except the pager style font-size. I can set it to any size and it appears in the source as expected but the design view does not change. When I Start-Without-Debugging and bring the page up and view the page source through IE7 the value of the font-size is what the original source has yet the displayed size is not correct. I have also used FireFox and Opera and they too show the same thing.

Tests I've done.

Fresh DNN 480 INstall in VS 2005   - problem appears.
Fresh DNN 480 Install in VWD 2008  - problem appears.

Create New ASP Website in VS 2005  - no problems.
Create New ASP Website in VWD 2008 - no problems.

Since the DNN installs are fresh there have been no changes to any CSS files.

I was originally leaning towards a problem with my install of VS 2005 but the problem is still there with VWD 2008. Yet outside the DNN code the problem disappears.Now I just don't know.

My temp solution was to create a style in the page itself and have the PagerStyle use it.

If anyone can shed siome light on this I would be grateful.

Thanks

 
New Post
5/21/2008 7:13 AM
 

Hi GMan,

 

I too have been struggling with altering the pager style font size.

 

Eventually I wrote this code in the Gridview.rowcreated event and hey presto it works!!!!!!!:

 

 

Protected Sub GridView1_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated

             If e.Row.RowType = DataControlRowType.Pager Then
                    If GridView1.PageIndex < GridView1.PageCount - 1 Then
                        Dim PagerTable As Table = CType(e.Row.Cells(0).Controls(0), Table)
                        PagerTable.CssClass = "NormalRed"
                    End If
                End If

 

end sub

 


Blue & White hooped blood runs through my veins!
 
New Post
5/21/2008 11:45 AM
 

Sorry in my haste to post I inncluded an unecessary extra "if" condition.

The code should have read as follows:

 

Protected Sub GridView1_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated

             If e.Row.RowType = DataControlRowType.Pager Then
                        Dim PagerTable As Table = CType(e.Row.Cells(0).Controls(0), Table)
                        PagerTable.CssClass = "NormalRed"
             End If

 

end sub


Blue & White hooped blood runs through my veins!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0GridView PagerStyleGridView PagerStyle


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out