dataGrid without DB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eugene Turin

    dataGrid without DB

    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
  • Ignacio Machin \( .NET/ C# MVP \)

    #2
    Re: dataGrid without DB

    Hi,

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


    cheers,

    --
    Ignacio Machin,
    ignacio.machin AT dot.state.fl.us
    Florida Department Of Transportation


    "Eugene Turin" <turin78@mail.r u> wrote in message
    news:5ed566f1.0 505312327.31f9a b01@posting.goo gle.com...[color=blue]
    > 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[/color]


    Comment

    • Nicholas Paldino [.NET/C# MVP]

      #3
      Re: dataGrid without DB

      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.


      --
      - Nicholas Paldino [.NET/C# MVP]
      - mvp@spam.guard. caspershouse.co m

      "Eugene Turin" <turin78@mail.r u> wrote in message
      news:5ed566f1.0 505312327.31f9a b01@posting.goo gle.com...[color=blue]
      > 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[/color]


      Comment

      Working...