GridView without database

  • Thread starter Thread starter etam
  • Start date Start date
E

etam

Hi,

what is the best way to show data which is generated dynamically (not
from database) in a GridView?

Thanks in advance,
Etam.
 
You can databind your grid to many types of objects. Typically a datasource
is an instance of IEnumerable, IListSource, IDataSource, or
IHierarchicalDatasource interface. All arrays and collections will qualify
(didn't check but pretty sure).

So organize your data in one of these collection objects and databind to it.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
 
Back
Top