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
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