dataGrid without DB

  • Thread starter Thread starter Eugene Turin
  • Start date Start date
E

Eugene Turin

Hi. I have a question from newby in C#.
I want to use a dataGrid without any DB. Is it possible?
How to dispaly in dataGrid array of strings? How to add columns?

Maybe there is a Grid component available?

P.S. I use a MS Visual Studio.Net
 
Hi,

IIRC you could bind any IList to the datagrid, this mean ArrayList, Array,
and any CollectionBase's derived class


cheers,
 
Eugene,

In addition to what Ignacio said, you can just create a DataSet in code,
without any connection to a database. Then, you can just bind that to the
DataGrid.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top