| | |
Problem on Datagrid
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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...
Or are there other ways to do this using C# as my script? Thanks...
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
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.
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.
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.
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.
•
•
Join Date: Feb 2008
Posts: 30
Reputation:
Solved Threads: 4
•
•
•
•
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?
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
![]() |
Similar Threads
- select row in datagrid....need help (VB.NET)
- Datagrid font display problem. (Visual Basic 4 / 5 / 6)
- Javascript Problem.... (JavaScript / DHTML / AJAX)
- How to Show Database In DataGrid Using DAO (Visual Basic 4 / 5 / 6)
- Paging in dataGrid (ASP.NET)
- Working on Datagrid with Listboxes !! (ASP.NET)
- Datagrid is not working that well in edit mode (ASP.NET)
- datagrid not showing images in Mozilla. (ASP.NET)
- How to sort the rows in the datagrid and update it successfully? (VB.NET)
- Linking to E-mail through datagrid (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Doubt in asp.net1.1
- Next Thread: problem in creating menu bar in asp.net2003
Views: 1389 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 ajax alltypeofvideos anathor appliances application asp asp.net beginner box browser button c# cac checkbox commonfunctions complex connection control dataaccesslayer database datagridview datalist deployment development dgv dialog dropdownlist dynamic dynamically edit editing embeddingactivexcontrol expose feedback fileuploader fill findcontrol flash form formatdecimal formview gridview gudi iis image javascript languages list listbox login microsoft mobile mouse mssql news novell numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail response.redirect richtextbox rows schoolproject search security select sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl theft tracking treeview validatedate validation vb.net videos vista visualstudio web webapplications webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers






