' Sort the dataset ' expC1 Field Public Function Sort(ByVal tcField As String) As Boolean oDataView = oDataSet.Tables(0).DefaultView oDataView.Sort = tcField Return True End FunctionThen, I am using this to loop through the data view:
For Each loRowDataView In loFileDirectory.oDataView cHtml = cHtml + loRowDataView("Name") NextIt works but I was wondering if there could be another way by simply always using the dataset. Because, originally, I had this when I was working on the dataset without any sort:
For Each loRow In loDataProvider.oDataSet.Tables(0).Rows cHtml = cHtml + loRow("Name") NextSo, I am wondering if I can still use the dataset direct access to get my data once the dataset has been sorted? Because, the only way I have found so far was to use the view functionality of the dataset to get my data.