We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

xml to object to row in grid

Thread ID:





15633 Jun 23,2004 07:57 PM UTC Jun 23,2004 08:42 PM UTC WinForms 1
Tags: GridControl
Clario Menezes
Asked On June 23, 2004 07:57 PM UTC

I''d like convert from an xml file to a collection of objects, where each object is bound to row in the grid. I''m thinking of using Xml serialization to objects to create the collection (unless anyone can suggest a better alternative), but I don''t know how to map (1-to-1) each object in this collection to a row. Ideally, every time I make a change to a cell value in row R, I''d like the object corresponding to row R to have the corresponding member''s value changed; similarly for adding and deleting rows.

Administrator [Syncfusion]
Replied On June 23, 2004 08:42 PM UTC

If your objects have public properties, you can just add the objects into an arraylist, and then set the ArrayList to be the DataSource in a GridDataBoundGrid. This should display your object''s public properties as columns in the grid.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon