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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bind a dataView to a DataGrid

Status
Not open for further replies.

fcoomermd

Programmer
Nov 20, 2002
218
CA
how can I do this?
Bind selected columns from a dataView to a datagrid?
I am using XML and creating a dataSet from the XML file.

dsEmployees.ReadXml("../machXML/employees.xml")
'now I create the view
Dim vwEmployees As DataView
vwEmployees = New DataView(dsEmployees.Tables("employees"))

'now I TRY to bind to a dataset
dgrdEmployees.SetDataBinding(vwEmployees, "employees")

I have no idea how to select specific columns though... any ideas?
Thanks
 
thread796-925334

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top