RowEditing and RowDeleting with GridView

How to do rowediting and rowdeleting with gridview and without datasou

Page 1 of 1

0 Replies - 11586 Views - Last Post: 12 May 2008 - 09:24 PM Rate Topic: -----

#1 panBwai   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 12-May 08

RowEditing and RowDeleting with GridView

Post icon  Posted 12 May 2008 - 09:24 PM


I am trying to do do row editing and row deleting on a gridview without a datasource. I found some examples but they are all in C#. Here is a snippet of what I have so far. Can anyone help with some VB.Net code. I need to know how what evenhandlers to call and how to call my own update and delete functions.

Protected Sub grdViewSmallToolItems_RowCancelingEdit(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles grdViewSmallToolItems.RowCancelingEdit
grdViewSmallToolItems.EditIndex = -1
End Sub

<asp:GridView ID="grdViewSmallToolItems" runat="server" Height="76px" Style="position: absolute; left: 26px; top: 19px;"
autogeneratecolumns="false" DataKeyNames="RecordID" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True">


Is This A Good Question/Topic? 0
  • +

Page 1 of 1