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. 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. Annie
    Replies:
    2
    Views:
    2,718
    The Crow
    Sep 11, 2005
  2. savvy
    Replies:
    1
    Views:
    462
    savvy
    Jan 18, 2006
  3. J Leonard
    Replies:
    4
    Views:
    12,624
    Mark Space
    Jan 19, 2008
  4. Annie

    Datagrid and boolean field dispalay

    Annie, Sep 11, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    99
    Tasos Vogiatzoglou
    Sep 11, 2005
  5. Metre Meter
    Replies:
    7
    Views:
    355
    Metre Meter
    Aug 6, 2010
Loading...

Share This Page