Help with Template Column in Datagrid

Discussion in '.NET' started by ktsg, Jul 11, 2007.

  1. ktsg

    ktsg

    Joined:
    Jul 11, 2007
    Messages:
    1
    Hi guys...

    I need some help over here and I would greatly appreciate it if you guys could lend me a helping hand.

    You see, I have this datagrid which has 3 template columns.

    Column[0] displays an image of the product.

    Column[1] displays the link to the product details (in a hyperlink) and a label which displays the price (retrieves from the database using DataBinder.Eval(Container.DataItem,"Price", "{0:c}") in the DataBinding

    And finally this Colum[2] which I need to display a Out of Stock message if the Quanity for the product in the database is 0. (this will be done as a Label)

    May I know how to do that?

    Thanks.
    ktsg, Jul 11, 2007
    #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. Dexter
    Replies:
    1
    Views:
    416
    Eliyahu Goldin
    Jan 18, 2005
  2. Ken Varn
    Replies:
    1
    Views:
    974
    Ken Varn
    Aug 19, 2005
  3. Charleees
    Replies:
    2
    Views:
    8,203
    Eliyahu Goldin
    Jun 20, 2006
  4. Ravichandran Mahalingam

    Bound Column or Template Column (w dAdapater?) in DataGrid

    Ravichandran Mahalingam, Jan 9, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    219
    Ravichandran Mahalingam
    Jan 9, 2004
  5. Esperanza

    Template column base on another column value

    Esperanza, Feb 18, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    5
    Views:
    173
    Elton Wang
    Feb 21, 2005
Loading...

Share This Page