W
Woody Splawn
I have a Winform where I fill a table with an associated dataset. This will
put say 20 records into the table.
I know this is elemental but... I want to see only one record from on my
Winform from the dataset where the SSN = 547703330. SSN is the primary key
for the table. At present I am using code like the following to determine
if the specific record exists in the Dataset.
Dim dtStudents As DataTable
Dim drStudents As DataRow
Dim dvStudents As DataView
Dim intIndex As Integer
dtStudents = DsMain1.Tables("Students")
dvStudents = dtStudents.DefaultView
dvStudents.Sort = "SSN ASC"
intIndex = dvStudents.Find(CObj(547703330))
'MsgBox(dvStudents(intIndex).Row("SSN").ToString)
My MsgBox tells me that the SSN is in the DataSet and is, for example,
Record 47. My question is, how do I now cause my form to only show that
particular record?
put say 20 records into the table.
I know this is elemental but... I want to see only one record from on my
Winform from the dataset where the SSN = 547703330. SSN is the primary key
for the table. At present I am using code like the following to determine
if the specific record exists in the Dataset.
Dim dtStudents As DataTable
Dim drStudents As DataRow
Dim dvStudents As DataView
Dim intIndex As Integer
dtStudents = DsMain1.Tables("Students")
dvStudents = dtStudents.DefaultView
dvStudents.Sort = "SSN ASC"
intIndex = dvStudents.Find(CObj(547703330))
'MsgBox(dvStudents(intIndex).Row("SSN").ToString)
My MsgBox tells me that the SSN is in the DataSet and is, for example,
Record 47. My question is, how do I now cause my form to only show that
particular record?