Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 March 19th, 2005, 01:48 PM
Registered User
 
Join Date: Mar 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default checkbox problem

i have added checkbox in datagrid using item template.
-i have check one of the checkbox.
-now when i watch in codebehind file using below code in debug mode.
Checkbox chkselect=(CheckBox)datagrid1.items[i].findcontrol("chkselect);
if(chkselect.checked)
{
Label1.Text="checked";

}
i have checked the checkbox but it is showing unchecked.
please help me
 
Old March 21st, 2005, 03:44 AM
Authorized User
 
Join Date: Mar 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hy..

u r missing ur ending quotes in
findcontrol("chkselect);

--> findcontrol("chkselect");

now chk..


It becomes FATAL wen my brain puts my eyes on Call-Waiting ! >|B-)





Similar Threads
Thread Thread Starter Forum Replies Last Post
multi checkbox problem deean Classic ASP XML 0 June 30th, 2008 12:43 AM
Checkbox indeterminate problem (I think) irishlad67 VB Databases Basics 2 March 30th, 2008 12:35 PM
Checkbox problem peterB Access VBA 3 February 20th, 2005 05:17 AM
CheckBox Insert Problem blink Classic ASP Databases 1 September 4th, 2003 12:34 PM





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