Re: TemplateField in Gridview

Discussion in 'ASP .Net' started by Eliyahu Goldin, Dec 19, 2006.

  1. You can make a template field with a checkbox and handle the RowDataBound
    event for the grid. In the event handler you can obtain the database field
    via DataItem property. Based on this value, you can set the checkbox Checked
    property.

    --
    Eliyahu Goldin,
    Software Developer & Consultant
    Microsoft MVP [ASP.NET]


    "Arne Garvander" <> wrote in message
    news:...
    >I need to transform a literal "YES" from from my database to a checkbox in
    >a
    > Gridview.
    > I suppose that I call a procedure in my code. Where can I find a coding
    > example for that?
    >
    > --
    > Arne Garvander
    > (I program VB.Net for fun and C# to get paid.)
    Eliyahu Goldin, Dec 19, 2006
    #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. lupina
    Replies:
    3
    Views:
    27,209
    =?Utf-8?B?RWx0b24gVw==?=
    Mar 1, 2006
  2. Replies:
    2
    Views:
    15,846
  3. Managed Code
    Replies:
    0
    Views:
    3,640
    Managed Code
    Jun 14, 2006
  4. sloan
    Replies:
    2
    Views:
    4,891
    aryan_subhash
    Oct 17, 2007
  5. mesut
    Replies:
    0
    Views:
    567
    mesut
    Jun 29, 2007
Loading...

Share This Page