datagrid checkbox why? please help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I didnt understand why removeval is always 0. where did I go wrong?

Dim i As Integer
For i = 0 To DataGrid1.Items.Count - 1

Dim removeval as integer
Dim Chb As CheckBox = CType(DataGrid1.Items(i).FindControl("Sil"), CheckBox)

If Chb.Checked = True Then
removeval = 1
Else
removeval = 0
End If
cmd.ExecuteNonQuery()

Next i
 
Pokemon,

Why are you not working from the underlying datasource, that is mostly 80%
easier, 95% more done, and has therefore more change to get help here.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top