A
Able
Dear friends
I am using FindRows methods of the DataView to select multiple rows as this:
Dim custView As DataView = New DataView(custDS.Tables("Customers"), "", _
"CompanyName, ContactName",
DataViewRowState.CurrentRows)
Dim foundRows() As DataRowView = custView.FindRows(New object() {"The
Cracker Box"})
Dim myDRV as DataRowView
For Each myDRV In foundRows
ListBox1.Items.Add(myDRV("CompanyName").ToString())
Next
But how do I sort the array (foundRows) before adding the items to the
listbox? The DataRowView has a sort method but I dont know how to use it.
Regards Able
I am using FindRows methods of the DataView to select multiple rows as this:
Dim custView As DataView = New DataView(custDS.Tables("Customers"), "", _
"CompanyName, ContactName",
DataViewRowState.CurrentRows)
Dim foundRows() As DataRowView = custView.FindRows(New object() {"The
Cracker Box"})
Dim myDRV as DataRowView
For Each myDRV In foundRows
ListBox1.Items.Add(myDRV("CompanyName").ToString())
Next
But how do I sort the array (foundRows) before adding the items to the
listbox? The DataRowView has a sort method but I dont know how to use it.
Regards Able