Problem on Datagrid

Reply

Join Date: Sep 2007
Posts: 73
Reputation: ebabes is an unknown quantity at this point 
Solved Threads: 0
ebabes's Avatar
ebabes ebabes is offline Offline
Junior Poster in Training

Problem on Datagrid

 
0
  #1
Feb 6th, 2008
I usually create a datagrid in Visual Web Developer to display information from a database because it has a wizard for SQL transactions. Is there a way to program and manage the datagrid using C# as a script? Such as add or delete directly a record from the datagrid and the database is also updated? I make use of Access as my database.

Or are there other ways to do this using C# as my script? Thanks...
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Problem on Datagrid

 
0
  #2
Feb 6th, 2008
Look up ASP.NET and AJAX. This is what I believe you are referring to. You wish to delete a record by clicking a button on the datagrid, which in turns deletes the row (or hides it) from the datagrid, and then deletes the row from the database, all while avoiding a postback to the server, right?

Can be done and not too hard. Look it up, you'll find some tutorials on AJAX. It is becoming a web standard, so it would be great to know it.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 73
Reputation: ebabes is an unknown quantity at this point 
Solved Threads: 0
ebabes's Avatar
ebabes ebabes is offline Offline
Junior Poster in Training

Re: Problem on Datagrid

 
0
  #3
Feb 7th, 2008
Ok thanks a lot. I will visit the postings about my problem.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 178
Reputation: sbv is an unknown quantity at this point 
Solved Threads: 8
sbv's Avatar
sbv sbv is offline Offline
Junior Poster

Re: Problem on Datagrid

 
0
  #4
Feb 12th, 2008
Originally Posted by ebabes View Post
Ok thanks a lot. I will visit the postings about my problem.
hi
are you using asp.net 2005? if yes then the grid provided here is with all the functions you needed. you need not to do any code for that. everything is on default.aspx page only and not in default.c# page.
and if any one need this functionality in vb.net also then get newer version i.e 2008.
Best luck.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 73
Reputation: ebabes is an unknown quantity at this point 
Solved Threads: 0
ebabes's Avatar
ebabes ebabes is offline Offline
Junior Poster in Training

Re: Problem on Datagrid

 
0
  #5
Feb 12th, 2008
I'm usng ASP.Net 2005 (Web Developer). I am not aware that there are built in functions provided in the page. What are those functions and how can I make use of it?

Thanks...
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 30
Reputation: dilipv is an unknown quantity at this point 
Solved Threads: 4
dilipv dilipv is offline Offline
Light Poster

Re: Problem on Datagrid

 
0
  #6
Feb 13th, 2008
Originally Posted by ebabes View Post
I'm usng ASP.Net 2005 (Web Developer). I am not aware that there are built in functions provided in the page. What are those functions and how can I make use of it?
Hi ebabes,
Datagrid has built-in functionality as DataBind() and property as DataSource. You need to set DataSet, ArrayList OR Any Collection as DataSource of DataGrid object. After that you can call DataBind() method of DataGrid object.
For ex: in c#, DataGrid_Object.DataSource=DataSet_Object;
DataGrid_Object.DataBind();


There are lots of articles are available on the internet, you can search through google.
Hope this will help you.
If problem persist then feel free to ask any number of questions.
Thanks & Regards
Dilip Kumar Vishwakarma
Programmer
.Net Consulting
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1389 | Replies: 5
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC