Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Urgent: Track Checkbox in a Datagrid


Message #1 by "Sachin Mhatre" <sachinx@h...> on Wed, 05 Feb 2003 14:49:13 +0530
I know this works

		Dim chkSelected As system.web.ui.webcontrols.checkbox
		Dim xmlfileitem As datagriditem
		For  Each xmlfileitem in ColumnList.items
			chkselected =3D
xmlfileitem.findcontrol("selectField")
			If chkselected.checked then
				blah blah blah

Hth

Paul


-----Original Message-----
From: Sachin Mhatre [mailto:sachinx@h...]
Sent: 05 February 2003 09:19
To: ASPX_Professional
Subject: [aspx_professional] Urgent: Track Checkbox in a Datagrid



Hi,
None of my below code to track a checkbox (chk_delete) in a datagrid
(dgComments)=A0is working. Help me For i =3D 0 To dgComments.Items.Count 
- 1
dgItem =3D dgComments.Items(i) Dim chkStatus As New CheckBox() 
'chkStatus
=3D dgComments.Items(i).Cells.Item(1).FindControl("chk_delete")
'chkStatus =3D dgComments.Items(i).FindControl("chk_delete")
'chkStatus =3D CType(dgComments.Items(i).Cells(0).Controls(1), CheckBox)
.................. NextHelp STOP SPAM with the new MSN 8  and get 2
months FREE*



  Return to Index