Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 21st, 2007, 01:50 AM
Authorized User
 
Join Date: Sep 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Checkbox problem in griedview

How can I select a GridView checkbox based on a data from a Database?

 
Old August 23rd, 2007, 09:17 PM
Authorized User
 
Join Date: Mar 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you elaborate a little more on what you are trying to achieve?

 
Old August 29th, 2007, 01:36 AM
Authorized User
 
Join Date: Jan 2007
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84
Default

U can used template column with check box. In html(source) write following line of code against check box's checked property.

 checked = '<%# (DataBinder.Eval(Container.DataItem, "FieledName").ToString() == "value") %>'






Similar Threads
Thread Thread Starter Forum Replies Last Post
multi checkbox problem deean Classic ASP XML 0 June 30th, 2008 12:43 AM
checkbox problem sarvesh189 ADO.NET 1 March 21st, 2005 03:44 AM
Checkbox problem peterB Access VBA 3 February 20th, 2005 05:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.