Hi,
How do I modify the code below to only display the first 5 records in a table and also from the to the 12th record. i need to display records in a combobox depending on which categories chosen.
Private Sub Button8_Click(sender As System.Object, e As System.EventArgs) Handles Button8.Click
Dim xmlPath1 As String
Dim dtsetcol1 As New DataSet
xmlPath1 = System.IO.Path.Combine(Application.StartupPath + "\MainTest.xml") 'grid1
dtsetcol1.Clear()
dtsetcol1.ReadXml(xmlPath1)
Me.ComboBox3.DataSource = dtsetcol1.Tables(0).Columns(0).ColumnName
End Sub
Thanks,
Victor
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.