George George

George George

  • NA
  • 778
  • 0

C# convert object array into datatable

Feb 8 2009 8:59 AM

Hello everyone,

I failed to find a sample about how to convert an array instances of user defined types into a (C# ADO.Net) datatable -- I want to use the datatable to bind to ASP.Net data bound controls (e.g. gridview). Could anyone provide a sample or recommend me to some simple samples?

Another question is, whether it is a must to convert to datatable in order to bound to controls in ASP.Net? Could I bound to any array of user defined types?

thanks in advance,
George


Answers (1)