Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete with Business Object from a Web Form
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00852521
Message ID:
00855144
Views:
19
Kevin,

> A question for you...if I understand you correctly you have placed a button on the Web Form that is used to delete items from a DataGrid? How do you determine which item in the grid you should be deleting?

I have a delete button on a page which displays the details of one record (a couple of textboxes for editing the records). The only record in the dataset here is the one being edited. This delete button gives me the problem I've presented.

Upon getting v1.1, I implemented a delete button in the datagrid on the list page. This page only has the datagrid on it. I used the code from Step 15 of the "Jump Start: Web Forms Application - C#" topic in the New Developer's Guide. Specifically it is the code in the grdOrderDetail_DeleteCommand event method handler (int RowToDelete = e.Item.ItemIndex;). This works with no problems.

Again, currently I'm just working through the Dev. Guide Jump Start steps with a SQL Server database that has one table and was trying to implement the delete button on the details page. It will be a requirement for me on my next project, where I'll re-engineer a VFP-based system in .NET with the help of MM.net.

Thanks,
Carter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform