The datagrid does need to be connected to a datasource. It is the datasource
that doesn't need to be connected to a database.Organize your data to any
in-memory collection, like an array etc, and it will be your datasource.
Databind the grid to it.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Julia B" <> wrote in message
news:73E1D407-E487-4BED-8034-...
> Hi
>
> I'm on version 1.1.
>
> Not sure if this is possible. I've got a datagrid on a webpage with 3
> columns, ID, Name and Email. The datagrid does not need to be connected to
> a
> datasource. I just want it to be populated by user selection from a drop
> down
> list. So each time the user selects a name from the drop down list I want
> a
> row to be added to the datagrid with the from the drop down list inserted
> into the columns.
>
> Any ideas how I can do this. I have quite a bit of experience populating
> datagrids with datasets that are filled from a backend database, but have
> no
> idea how to populate them manually in code.
>
> Thanks
> Julia