I am building a windows application and need to bind the data in a dataset to a DataGridView. I keep getting a grey screen. Can someone please help me with this???
Dim ds As New DataSet
Dim BS2 As New BindingSource()
BS2.DataSource = ds
dg1.DataSource = BS2
ds.ReadXml(getFilePath() & "\ScheduleData.xml", XmlReadMode.InferSchema)
BS2.DataSource = ds
dg1.DataSource = BS2
Thank you in advance!
Dim ds As New DataSet
Dim BS2 As New BindingSource()
BS2.DataSource = ds
dg1.DataSource = BS2
ds.ReadXml(getFilePath() & "\ScheduleData.xml", XmlReadMode.InferSchema)
BS2.DataSource = ds
dg1.DataSource = BS2
Thank you in advance!