Datagrid

  • Thread starter Thread starter Patrick De Ridder
  • Start date Start date
P

Patrick De Ridder

Is it possible to use a datagrid for data IO, if not using a database
but a file on HD? If 'yes', could you please refer me to a
comprehensive example?

Thanks,
Patrick.
(e-mail address removed)

Re the above:



Greetings,
Patrick De Ridder
(e-mail address removed)
 
Your database could be a file on HD...

Still, the datagrid is just for displaying data, as far as I know it wont
do any of the IO for you, but you could read a local file (e.g. an XML
file) and then display it in a datagrid.

e.g.

DataSet ds = new DataSet();
ds.ReadXml("c:/test.xml");
dataGrid1.DataSource = ds;

For a more comprehensive example you will have to give more information on
what you are looking for - You could probably write a whole book just
covering DataGrids...
Is it possible to use a datagrid for data IO, if not using a database
but a file on HD? If 'yes', could you please refer me to a
comprehensive example?

Cheers,
Simon.
 
For a more comprehensive example you will have to give more information on
what you are looking for - You could probably write a whole book just
covering DataGrids...

I want to create a file, for the sake of the example, lets say an
addresses file with name, street, city, zip code etc. I was wondering
if a data grid could be used to display that data and possibly, though
not necessarily, allow changes to that data to be made - as an
alternative to using a list view.

By the way I got an email from some site

http://www.developersdex.com/csharp/message.asp?r=3241839&p=1111

which is displaying your response to my query. Is this serious stuff
or just a load of bllsht?

Patrick De Ridder
(e-mail address removed)
 
no it's serious stuff, what he shows is actually a popular way to display
data in a grid
 
Back
Top