Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you binde a dataSet to a DataGridView in windows???

Status
Not open for further replies.

Webwzrd

Programmer
Apr 23, 2002
40
0
0
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top