Datagrid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Patrick De Ridder

    Datagrid

    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.
    ngmail@freeler. nl

    Re the above:



    Greetings,
    Patrick De Ridder
    ngmail@freeler. nl
  • Simon Bayling

    #2
    Re: Datagrid

    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.DataS ource = 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...
    [color=blue]
    > 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?[/color]

    Cheers,
    Simon.

    Comment

    • Patrick De Ridder

      #3
      Re: Datagrid

      On Sat, 26 Jul 2003 16:11:15 +0000 (UTC), Simon Bayling
      <sfb@alysseum.c om> wrote:

      [color=blue]
      >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...
      >[/color]

      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



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

      Patrick De Ridder
      ngmail@freeler. nl

      Comment

      • Alvin Bruney

        #4
        Re: Datagrid

        no it's serious stuff, what he shows is actually a popular way to display
        data in a grid
        "Patrick De Ridder" <ngmail@freeler .nl> wrote in message
        news:f0g5iv0n6m u9tncn04c5nl26q qaqabn3dp@4ax.c om...[color=blue]
        > On Sat, 26 Jul 2003 16:11:15 +0000 (UTC), Simon Bayling
        > <sfb@alysseum.c om> wrote:
        >
        >[color=green]
        > >For a more comprehensive example you will have to give more information[/color][/color]
        on[color=blue][color=green]
        > >what you are looking for - You could probably write a whole book just
        > >covering DataGrids...
        > >[/color]
        >
        > 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/...3241839&p=1111
        >
        > which is displaying your response to my query. Is this serious stuff
        > or just a load of bllsht?
        >
        > Patrick De Ridder
        > ngmail@freeler. nl
        >[/color]


        Comment

        Working...