Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Adding a new row to a datagrid without a dataset

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Julia B - 09 Oct 2007 15:55 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.