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
Eliyahu Goldin - 09 Oct 2007 15:58 GMT
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.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
> Hi
>
[quoted text clipped - 17 lines]
> Thanks
> Julia
Julia B - 09 Oct 2007 16:21 GMT
Thanks for that.
> 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
[quoted text clipped - 22 lines]
> > Thanks
> > Julia