[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.5

GridView

Asked by attaylor44 in C# Programming Language, Programming for ASP.NET, .NET Framework 2.x

Tags: C# Asp.NET

I am using a gridview control with bound datafields.  The query returns 6 fields from the DB.

Fields are:  ID field, Client Name, and then 4 boolean fields.

These are currently all bound fields, the first two fields (ID and Client Name) are intended to display the text contained in the database.  the next three boolean fields are intended to be links that open specific forms, they display "true" and "False" depending on the boolean value returned by query.   The final boolean field is a checkbox that represents if an internal employee has printed the clients forms or not.

I am tasked with allowing the check of a box in the printed column to update a record on the database, I believe I have this done.

Next, I would like the links in the middle three bool fields to be handeled differently.  Instead of a True/False display, I would like to place the name of the form the link directs to, but only in the case of a true, if the value is false, i want to leave the display blank.... this way someone looking at the table will only see links for elements available that have already been completed by the client.

Is this possible?

Thanks!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
<%@ Page Language="C#" MasterPageFile="~/MasterHomePage.Master" AutoEventWireup="true" CodeBehind="PrintApplciations.aspx.cs" Inherits="GALawyer.Pages.PrintApplciations" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="AppID" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="AppID" HeaderText="AppID" InsertVisible="False" ReadOnly="True"
                SortExpression="AppID" />
            <asp:BoundField DataField="FirmName" HeaderText="Firm name" InsertVisible="False" ReadOnly="True"
                SortExpression="FirmName" />
            <asp:ButtonField DataTextField="isPIRComplete" HeaderText="Premium Indication"  CommandName="OpenPIR" SortExpression="isPIRComplete" /> 
            <asp:ButtonField  DataTextField="isNeEWComplete" HeaderText="New Applications"  CommandName="OpenNewApp" SortExpression="isNEWComplete"/>
            <asp:ButtonField DataTextField="isRENEWComplete" HeaderText="Renewal Application"  CommandName="OpenRENEW" SortExpression="isRENEWComplete" />   
            <asp:CheckBoxField DataField="Printed" HeaderText="Printed" SortExpression="Printed" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:LPLWebDTSQLConnectionString4 %>"
        UpdateCommand="UPDATE [tblApps] SET [Printed] = @Printed WHERE [AppID] = @AppID" SelectCommand="SELECT tblApps.AppID, tblUsers.FirmName, tblApps.isPIRComplete, tblApps.isNEWComplete, tblApps.isRENEWComplete, tblApps.Printed FROM tblApps INNER JOIN tblUsers ON tblApps.ClientID = tblUsers.ClientID">
        <UpdateParameters>
            <asp:Parameter Name="Printed" Type="Boolean" />
            <asp:Parameter Name="AppID" Type="Int32" />
        </UpdateParameters>
        
    </asp:SqlDataSource>
 
</asp:Content>
[+][-]07/01/08 08:30 PM, ID: 21913232Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]07/02/08 05:35 AM, ID: 21915637Author 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.

 
[+][-]07/02/08 07:10 AM, ID: 21916524Author 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.

 
[+][-]07/02/08 04:30 PM, ID: 21921710Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]07/03/08 06:12 AM, ID: 21925053Author 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.

 
[+][-]07/03/08 10:55 PM, ID: 21931211Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]07/03/08 11:03 PM, ID: 21931227Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]07/07/08 05:14 AM, ID: 21944304Author 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.

 
[+][-]07/07/08 04:13 PM, ID: 21949397Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]07/07/08 04:20 PM, ID: 21949437Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]07/08/08 04:57 AM, ID: 21952814Author 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.

 
[+][-]07/08/08 06:24 AM, ID: 21953519Author 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.

 
[+][-]07/08/08 05:30 PM, ID: 21959610Accepted 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: C# Programming Language, Programming for ASP.NET, .NET Framework 2.x
Tags: C# Asp.NET
Sign Up Now!
Solution Provided By: lijunguo
Participating Experts: 1
Solution Grade: A
 
[+][-]07/09/08 05:11 AM, ID: 21962640Author 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...
20091021-EE-VQP-81 / EE_QW_2_20070628