Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / July 2006

Tip: Looking for answers? Try searching our database.

Load chunk of xmldata in datagrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ameen.abdullah@gmail.com - 13 Jul 2006 15:53 GMT
Hi Guys,

I have a xml file, from which i want a node to be populated in a
datagrid. whats the easiest way to do this??

Here is a sample of xml file:

<?xml version="1.0" ?>
<script version="1.1">
 <jobs>
   <job name="Job1"/>
   <job name="Job2"/>
 </jobs>
 <tables>
   <table name="Table">
     <columns>
       <column name=Col1' />
       <column name=Col2'/>
       <column name=Col3'/>
      </columns>
   </table>
 </tables>
</script>

Now, I want to populate the datagrid with
tables/table/columns/column@name..

Another question.. Can i add checkboxes in datagrid??

Thanks in advance..
Andrew Brook - 17 Jul 2006 09:02 GMT
I would try and load the xml into a DataSet class. I think the function is
<<DataSetInstance>>.ReadXml().
This would probably give you a dataset with a number of tables
(jobs,job,tables,table,columns,column)
You might want to explicitly design the schema for the dataset in order to
have more control over the table creation. Once you have a Dataset you can
bind the required table to the Datagrid. Also, it is possible to have
checkboxes in a Datagrid, you'll have to look into template columns.
ta,
Andrew

> Hi Guys,
>
[quoted text clipped - 26 lines]
>
> Thanks in advance..
ameen.abdullah@gmail.com - 17 Jul 2006 17:40 GMT
Thanks Andrew for the response.. it was really helpful :)

> I would try and load the xml into a DataSet class. I think the function is
> <<DataSetInstance>>.ReadXml().
[quoted text clipped - 37 lines]
> >
> > Thanks in advance..

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.