mwfrancois
Technical User
Newbie here with hopefully a simple issue. I have searched and not found what I understand to be helpful. My problem is I am not getting any records returned to my datagrid. The field headings show up but no records. Any suggestions? Here is my code:
Private Sub SetUpGrid()
'Dimension dvVBCreditCard DataView object
Dim dvVBCreditCard As DataView
'Instantiate New DataView with data from table "VBCreditcard" in the dsVBCreditCard1 DataSet
dvVBCreditCard = New DataView(dsVBCreditCard1.Tables("VBCreditcard"))
'Filter Dataview by string in txtLname box
dvVBCreditCard.RowFilter = "LName = '" & txtLname.Text & "'"
'Set DataGrid equal to DataView
dgVBCreditCard.DataSource = dvVBCreditCard
End Sub
Private Sub SetUpGrid()
'Dimension dvVBCreditCard DataView object
Dim dvVBCreditCard As DataView
'Instantiate New DataView with data from table "VBCreditcard" in the dsVBCreditCard1 DataSet
dvVBCreditCard = New DataView(dsVBCreditCard1.Tables("VBCreditcard"))
'Filter Dataview by string in txtLname box
dvVBCreditCard.RowFilter = "LName = '" & txtLname.Text & "'"
'Set DataGrid equal to DataView
dgVBCreditCard.DataSource = dvVBCreditCard
End Sub