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

Get data from an Excel(can have more than one sheet) to parse it to a business class object

Get data from an Excel(can have more than one sheet) to parse it to a business class object

5 Replies

TE Testname December 15, 2016 09:52 AM UTC

If I already know the type of my business class object, some kind of casting between an excel(can have more than 1 shet) to a businessclass object. How to do this ?


TE Testname December 15, 2016 09:57 AM UTC

Each excel sheet represents a  single business class object


AV Abirami Varadharajan Syncfusion Team December 16, 2016 11:33 AM UTC

Hi Testname, 
  
Thank you for contacting Syncfusion support. 
  
We have prepared sample as per your requirement and the sample can be downloaded from following location. 
  
Please let us know if you have any concerns. 
  
Regards, 
Abirami. 



TE Testname December 16, 2016 04:11 PM UTC

Now I need a method which will automatically cast "row.Cells[...]" to the right .net type instead of explicity cast it like "Convert.ToInt32(row.Cells[...].Number);"


AV Abirami Varadharajan Syncfusion Team December 19, 2016 11:26 AM UTC

Hi, 
 
We don’t have any implicit method to cast Excel data automatically. So, we request you to cast it explicitly with appropriate .NET type
 
Please let us know if you have any concerns. 
 
Regards, 
Abirami. 


Loader.
Up arrow icon