Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Add data to datagrid?


Add data to datagrid?

Reply
  #1 (permalink)  
Old 10-28-03, 04:22 PM
petersza petersza is offline
Newbie Coder
 
Join Date: Oct 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Add data to datagrid?

Does anyone have any code, or can send me somewhere, that shows how to add data to a DataGrid control at runtime? I have the grid working with the Edit/Cancel/Update/Delete events, but I haven't been able to find out how to allow my users to *add* data to the grid.

Thanks,

Peter.
Reply With Quote
  #2 (permalink)  
Old 10-28-03, 06:29 PM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by petersza
Does anyone have any code, or can send me somewhere, that shows how to add data to a DataGrid control at runtime? I have the grid working with the Edit/Cancel/Update/Delete events, but I haven't been able to find out how to allow my users to *add* data to the grid.

Thanks,

Peter.
There are a few ways to do it, but picking a particular solution would depend on your intent.

I would check out: http://groups.google.com/groups?hl=e...+into+datagrid

Several examples have been posted in those links. Check them out and pick which one works best for you.

In a nutshell, you can physically add a new row to the grid, but it won't be added to the database. Or, you can add a row to the database and it will load into the grid when the page is loaded again.
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote
  #3 (permalink)  
Old 04-11-04, 10:13 PM
johhny_phpgeek johhny_phpgeek is offline
New Member
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Wink there is a php solution

if you are looking for php-based solution. phpgrid (http://www.phpgrid.com) will probably do what you are asking for. It is completely web-based with admin features like remove/add/edit etc.

john
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The data being processed is over the allowed limit ? mattboy_slim ASP 2 02-24-04 10:45 PM
How to download data from datagrid to Excel? engheegoh ASP 0 09-14-03 10:44 PM
QueryString and retrieve data from database pjm ASP 3 08-11-03 02:21 PM
Print data by date perleo PHP 2 08-09-03 09:35 AM
cannot display the complete data najmun PHP 2 07-04-03 02:52 PM


All times are GMT -5. The time now is 01:13 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.