Dim dv As New DataView(_DataSet.Tables(0)) dv.RowStateFilter = DataViewRowState.Deleted For _irow As Long = 0 To dv.Table.Rows.Count - 1 If Not IsDBNull(dv!serial) Then Dim strconnection As String = "Data Source=EASMAR-PC;Initial Catalog=Database Connection;Integrated Security=True;" Dim _cn As SqlConnection = New SqlConnection(strconnection) _cn.Open() Dim cmd As New SqlCommand cmd.CommandText = "Delete from tblCustomer where serial= " & txtSerial.Text End If Next
Conversion from string "serial" to type integer is not valid.
If Not IsDBNull(dv!serial) Then
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)