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*