Re: Add row to datagrid without underlying table?
From: Jim (none)
Date: 07/28/04
- Next message: BMermuys: "Re: Timer and refreshing the UI"
- Previous message: Erik Frey: "Re: Load EXE and run from memory - is it possible in C# ?"
- In reply to: Kai Brinkmann [MSFT]: "Re: Add row to datagrid without underlying table?"
- Next in thread: Kai Brinkmann [MSFT]: "Re: Add row to datagrid without underlying table?"
- Reply: Kai Brinkmann [MSFT]: "Re: Add row to datagrid without underlying table?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 28 Jul 2004 17:47:26 -0400
Thanks for the post.
I need to display many rows of data without having to store all the data in
memory. If I load it in a datatable, the datatable will start filling up and
it'll consume most (if not all) of the PC's memory. I only want to display
the data, not store it in memory.
"Kai Brinkmann [MSFT]" <kaibrink@online.microsoft.com> wrote in message
news:e96FOnOdEHA.3560@TK2MSFTNGP10.phx.gbl...
> Jim,
>
> I'm not entirely sure I understand your question. A datagrid must have a
> data source, but this doesn't have to be a DataTable. In fact, it could be
> any component that implements the IList or IListSource interface, so even
a
> simple ArrayList is valid. The datagrid shows the items in the data
source,
> so you can add rows by adding items to the underlying data source. By
> default, users can also modify or delete existing items (rows) or add new
> ones in the UI, and those changes can persist in the data source.
>
> I hope this helps. I might be able to provide more info if you can clarify
> just what you're trying to accomplish.
>
> --
> Kai Brinkmann [MSFT]
>
> Please do not send e-mail directly to this alias. This alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "Jim" <none> wrote in message
news:O$QwxVOdEHA.3704@TK2MSFTNGP09.phx.gbl...
> > is it possible to add a row to a Windows datagrid witthout having a
> > datatable? I need to add a row to the datagrid control.
> >
> > Thanks.
> >
> >
>
>
- Next message: BMermuys: "Re: Timer and refreshing the UI"
- Previous message: Erik Frey: "Re: Load EXE and run from memory - is it possible in C# ?"
- In reply to: Kai Brinkmann [MSFT]: "Re: Add row to datagrid without underlying table?"
- Next in thread: Kai Brinkmann [MSFT]: "Re: Add row to datagrid without underlying table?"
- Reply: Kai Brinkmann [MSFT]: "Re: Add row to datagrid without underlying table?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|