Datagrid template column and Boolean table field?

Discussion in 'ASP .Net Datagrid Control' started by Annie, Sep 9, 2005.

  1. Annie

    Annie Guest

    Hello guys,

    I have a template column that is bound to a database field with True and
    False value. So it displays True or False as per item.

    The code is as:
    <tr>
    <td align="left"><b>Colour Screen</b></td>
    <td><%# DataBinder.Eval(Container.DataItem, "ModelColour") %></td>
    </tr>

    However, i don't want to show True or False maybe display it as Yes or No or
    anything customized.
    How can i do it with above code?

    TIA
     
    Annie, Sep 9, 2005
    #1
    1. Advertisements

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. Dexter
    Replies:
    1
    Views:
    556
    Eliyahu Goldin
    Jan 18, 2005
  2. Ken Varn
    Replies:
    1
    Views:
    1,103
    Ken Varn
    Aug 19, 2005
  3. Annie
    Replies:
    2
    Views:
    2,876
    The Crow
    Sep 11, 2005
  4. savvy
    Replies:
    1
    Views:
    617
    savvy
    Jan 18, 2006
  5. J Leonard
    Replies:
    4
    Views:
    14,093
    Mark Space
    Jan 19, 2008
  6. Annie

    Datagrid and boolean field dispalay

    Annie, Sep 11, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    183
    Tasos Vogiatzoglou
    Sep 11, 2005
  7. Sound
    Replies:
    2
    Views:
    743
    Randy Webb
    Sep 28, 2006
  8. Metre Meter
    Replies:
    7
    Views:
    1,034
    Metre Meter
    Aug 6, 2010
Loading...