Private Sub buttonNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonNext.Click
Dim dgItem As DataGridItem
Dim i As Integer = 0
For Each dgItem In dgLineItems.Items
Dim myCheckbox As CheckBox = CType(dgItem.Cells(0).Controls(1), CheckBox)
If myCheckbox.Checked = True Then
i += 1
... "i" is always zero even if I check some of the checkboxes. Any suggestions? Thanks.
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.