AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 DataGrid Control
Posted by PrasannaKumar on  7/3/2007 11:18:11 AM Category: ADO.NET
Add to my favorites
Email to friend
Software Version:

ASP.NET 1.1

Visual Studion 2003.

SQL Server 2000.

How to INSERT, DELETE and UPDATE rows in a DataGrid ? Where one column is an Hyperlink field and one column is a dropdown list.

Post Your Reply Post New Question

 Viewer's Reply
Refer the below url
Answered By Moderator1 on 7/5/2007 8:22:25 AM
I suggest you to refer the below url for inserting, edit and delete with datagrid control

http://aspnet.4guysfromrolla.com/articles/021203-1.aspx.

for editing a dropdown control you have to load it in ItemDataBound event, then when click edit linkbutton, you have check

e.Item.ItemType==ListItemType.Edit

then you have to set the selectedValue with your logic.

Please let us know your improvements.
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Washington Technology
Building a Web Application Security Program
The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition - Free 207 Page Preview!