Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: TemplateField in Gridview

Thread Tools

Re: TemplateField in Gridview

Eliyahu Goldin
Posts: n/a
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

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

"Arne Garvander" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I need to transform a literal "YES" from from my database to a checkbox in
> 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.)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TemplateField in 2.0 // Disappears on Postback when TemplateField is added thru code sloan ASP .Net 2 10-17-2007 09:08 AM
Boundcolumn or TemplateField when to use Boundcolumn and when TemplateField ???? mesut ASP .Net 0 06-29-2007 10:17 AM
dropdownlist as templatefield needs outer gridview's row value as select parameter Managed Code ASP .Net 0 06-14-2006 06:03 PM
Gridview control and sorting a calculated templatefield column ? ASP .Net 2 06-14-2006 01:49 AM
GridView dynamiclly adding TemplateField lupina ASP .Net 3 03-01-2006 01:16 AM