i have problem guys about overload resolution
Overload resolution failed because no Public 'Add' can be called with these arguments:
'Public Function Add(text As String) As System.Windows.Forms.ListViewItem.ListViewSubItem':
Argument matching parameter 'text' cannot convert from 'DBNull' to 'String'.
'Public Function Add(item As System.Windows.Forms.ListViewItem.ListViewSubItem) As System.Windows.Forms.ListViewItem.ListViewSubItem':
Argument matching parameter 'item' cannot convert from 'DBNull' to 'ListViewSubItem'.
this is my code
Public Sub displaydata()
Dim objdatareader As SqlDataReader
objdatareader = objCommand.ExecuteReader
While objdatareader.Read
Dim listview As New ListViewItem
With listview
.Text = objdatareader.Item("IV_Form_ID")
.SubItems.Add(objdatareader("Date_Started"))
End With
ListView1.Items.Add(listview)
End While
End Sub
i used stored procedure