Visible Bindable Property - Eval code help

Discussion in 'ASP .Net' started by Steve, Sep 30, 2006.

  1. Steve

    Steve Guest

    In my gridview, I have a template column whose 'visible property' I
    wish to bind to a database field called "TransactionType" which is of a
    string datatype.

    I only want the data in this gridview column to be visible when the
    "TransactionType" field = "Income"

    i.e. I want to do something like this for the visible property:

    IF Eval("TransactionType") = "Income"

    But I don't know the syntax.

    Can anyone help? Thank you.
    Steve, Sep 30, 2006
    #1
    1. Advertising

  2. Steve

    Steve Guest

    Ok i figured it out, I just take the if away!

    Thank you.

    Steve wrote:
    > In my gridview, I have a template column whose 'visible property' I
    > wish to bind to a database field called "TransactionType" which is of a
    > string datatype.
    >
    > I only want the data in this gridview column to be visible when the
    > "TransactionType" field = "Income"
    >
    > i.e. I want to do something like this for the visible property:
    >
    > IF Eval("TransactionType") = "Income"
    >
    > But I don't know the syntax.
    >
    > Can anyone help? Thank you.
    Steve, Sep 30, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tommy

    create a bindable property

    Tommy, Nov 4, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    2,600
    Tommy
    Nov 4, 2004
  2. Eric Newton
    Replies:
    3
    Views:
    9,347
    Brock Allen
    Apr 4, 2005
  3. MrB

    server control simple bindable property

    MrB, Dec 23, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    140
  4. MrB

    custom control bindable property

    MrB, Dec 29, 2003, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    208
  5. Craig Buchanan
    Replies:
    0
    Views:
    156
    Craig Buchanan
    Aug 22, 2007
Loading...

Share This Page