Hi all
i have a listview with few records im able to delete the records from the listview but after deleting the record the listview is not getting refreshed pls me to solve this....
Here is the code:
If frmName = "frmcust" Then
If del_CustCode.Count >= 1 Then
If MsgBox(strDeleteQuestion, MsgBoxStyle.YesNo + MsgBoxStyle.Information, strprjName) = MsgBoxResult.Yes Then
For i = 0 To del_CustCode.Count - 1
com = New SqlCommand("delete from tbl_customer where CustCode='" & del_CustCode.Item(i).ToString & "'", con)
com.ExecuteNonQuery()
MessageBox.Show(" Record Deleted ", " Delete ", MessageBoxButtons.OK, MessageBoxIcon.Information)
frmcust.Lv_cust.Items.Clear()
Next
End If
End If
End If