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

Preserving data types after reading in from an xml file

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

1 Reply

AD Administrator Syncfusion Team June 23, 2004 12:41 PM UTC

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

Live Chat Icon For mobile
Up arrow icon