Želim obrisati više redova iz tablice pomoću koda.
Probao sam ovako:
Dim i As Integer
Dim table As DataTable
Dim row As DataRow
table = objd.Tables.Item(0)
For i = 0 To table.Rows.Count - 1
row = table.Rows.Item(i)
If row("BrojRačuna") = "31" Then
row.Delete()
End If
Next
Ali mi izbaciva grešku:
Operator is not Vaild for type DBNull And String "31"