Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi guys, another problem i facing in datagrid. I want to delete the row inside my datagrid whenever i check the checkbox. It seems that my code below is correct, but when i check the checkbox, and click the delete button, it fail to perform as what i want. Can anyone help me? I've attach my interface for reference.

 

Private Sub cmdButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdButton.Click

For Each m_check In myDataGrid.Columns

If m_check.DataItem = True Then

m_objSMS.delete(m_check.DataItem(2).Text)

MsgBox("Are You Sure You want to delete this record?")

End If

Next

End Sub

untitled.bmp

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...