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.
Unfortunately, activation email could not send to your email. Please try again.

Preserving data types after reading in from an xml file

Thread ID:





15604 Jun 23,2004 07:39 AM Jun 23,2004 08:41 AM Windows Forms 1
Tags: GridControl
Clario Menezes
Asked On June 23, 2004 07:39 AM

Hi, Suppose I have the following XML file: ... (more ''s) Is there any way for me to load the data from this file into a grid but have each column in the grid bound to the data typ specified in the file using C#? For instance, in the above example, after loading the XML file, my grid should have 3 columns (A, B, and C), where column A has data type "string", B has "int", and C has "float". Thanks, Clario

Administrator [Syncfusion]
Replied On June 23, 2004 08:41 AM

Your xml did not make it to the forum post. But you can dynamically set Types at runtime using ITypedList. Here is a forum thread that has a sample. It does not use XML, but it does dynamcally set types at runtime. Maybe you can do something similar. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=15207


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.

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.