[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

Paging Customization

Asked by ansi_c in Programming for ASP.NET, C# Programming Language

Tags: paging, selecteditemstyle

Currently, I have below.

            <asp:DataGrid ID="dgSearch" runat="server" DataSourceID="SqlDataSource1" AllowPaging="True"
                CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="2" Font-Bold="False"
                Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
                OnPageIndexChanged="dgSearch_PageIndexChanged" AllowCustomPaging="True" Width="600px"
                PagerStyle-HorizontalAlign="Right">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditItemStyle BackColor="#2461BF" />
                <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#2461BF" Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" ForeColor="White" HorizontalAlign="Right"
                    Mode="NumericPages" Position="Top" />
                <AlternatingItemStyle BackColor="White" />
                <ItemStyle BackColor="#EFF3FB" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Font-Italic="False"
                    Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
            </asp:DataGrid>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CaasConnectionString %>"
                SelectCommand="Select AccountID, UserID, FullName, Case RoleType When 0 Then 'Admin' Else 'User' End 'Role', t2.CompanyName, Case T1 When 1 Then 'Y' Else 'N' End 'T1', Case T2 When 1 Then 'Y' Else 'N' End 'T2', Case T3 When 1 Then 'Y' Else 'N' End 'T3', Case BT When 1 Then 'Y' Else 'N' End 'BT', Case t1.Status When 1 Then 'Active' Else 'Disabled' End 'Status'
From tblAccount t1 Inner Join tblCompany t2 On t1.CompanyID = t2.CompanyID
Where 1 = 0
Order By UserID"></asp:SqlDataSource>

However, I have some problem. When there are no rows returned, I see 1 digit "1" at the top right of the paging row.
- I do not want to see the "1" when there are no rows. I want empty text for the page numbering.

When there are more than 1 rows, I see the paging 1 2 3 at the top LEFT.
- I need it to be at the right hand corner. How come after I click search button, the paging numbering end up at the left instead of right?

How do I set columns to be a hyperlink? And how do I add a new column at the end to be a checkbox column?

I do not have much points left.
[+][-]10/29/07 10:49 PM, ID: 20174989Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Programming for ASP.NET, C# Programming Language
Tags: paging, selecteditemstyle
Sign Up Now!
Solution Provided By: madhevan_pillai
Participating Experts: 1
Solution Grade: A
 
[+][-]10/30/07 07:04 AM, ID: 20177195Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 / EE_QW_2_20070628