Limit Columns shown from XML file

Tech-Archive recommends: Speed Up your PC by fixing your registry



My application reads data from an XML file into a Dataset, then via a
Dataview displays the data to the user in a datagrid. How do I only
show certain columns in the Datagrid? I have tried the TableStyle
property (and subsequent ColumnStyle) of the Datagrid, but the unwanted
columns still apear.

With SQL/OLE databases it was easy by simply using the SQL statement to
only fill the dataset with the required columns. But is there an
equivalent when reading an XML file?

With thanks

.



Relevant Pages

  • Re: xml data connection in Web Services
    ... display an XML file on a datagrid with no problem. ... Private Function MakeDataView() as DataView ... Dim myDataSet As New DataSet ...
    (microsoft.public.dotnet.framework.aspnet)
  • XML, DataGrid and ASP.NET
    ... I m struggling with my code, I really can t find a way to get away with ... I m using a datagrid with an XML file on ASP.Net ... so I use DataView dv=new DataView; ...
    (microsoft.public.dotnet.languages.csharp)
  • Problem mit NavigateUrl
    ... Ich habe ein DataGrid und binde daran ein Xml File. ... Navigation. ... Ich benutze für meine Seite übrigens MasterPages ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • VB.net Form to Read and Update XML
    ... the DataGrid). ... Dim xdd As XmlDataDocument ... MessageBox.Show("The XML file has been successfully updated!") ...
    (microsoft.public.dotnet.xml)
  • Re: continuously running thread?
    ... and continuously running threads aren't ... This will fire a method at a timed interval on a> threadpool thread and this method can check the XML file. ... > will perform the datagrid refresh. ... > Best Regards ...
    (microsoft.public.dotnet.languages.csharp)