hi all,
I have 3 autogenerated columns and 1 template column for checkbox and im using vs 2003 in asp.net
my code is
chkSelected returns false and the command does not execute
I have 3 autogenerated columns and 1 template column for checkbox and im using vs 2003 in asp.net
my code is
Code:
Dim myDataGridItem As DataGridItem Dim chkSelected As New System.Web.UI.WebControls.CheckBox For Each myDataGridItem In dgresult.Items chkSelected = myDataGridItem.FindControl("chkSelection") If chkSelected.Checked Then If dgresult.Items.Count Mod dgresult.PageSize = 1 And _ dgresult.CurrentPageIndex = dgresult.PageCount - 1 And _ dgresult.CurrentPageIndex <> 0 Then dgresult.CurrentPageIndex = dgresult.CurrentPageIndex - 1 End If 'update command End If Next
Comment