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

xml to object to row in grid

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.

1 Reply

AD Administrator Syncfusion Team 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.

Live Chat Icon For mobile
Up arrow icon