Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > EditCommandColumn

Reply
Thread Tools

EditCommandColumn

 
 
Vanessa Berni
Guest
Posts: n/a
 
      09-15-2003
Hi,
in the codebehind I've created a datagrid and I've added an
EditCommandColumn


Dim EditCol As New EditCommandColumn
EditCol.EditText = "Edit"

EditCol.UpdateText = "Update"

EditCol.CancelText = "Cancel"

EditCol.HeaderText = "Modifica"

myDataGrid.Columns.Add(EditCol)

AddHandler myDataGrid.EditCommand, AddressOf Me.dg_Edit
AddHandler myDataGrid.UpdateCommand, AddressOf Me.dg_Update

AddHandler myDataGrid.CancelCommand, AddressOf Me.dg_Cancel

The problem is that every time (if a click the "update or delete link") I
got the EditCommand event instead of the UpdateCommand or CancelCommand.

Why?!?!?!



Thanks Vanessa


 
Reply With Quote
 
 
 
 
TY.Ng
Guest
Posts: n/a
 
      10-09-2003
vanessa,

can u post your page load, edit, update and cancel event handling methods?


--
TY.Ng
www.rainforestnet.com


"Vanessa Berni" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> in the codebehind I've created a datagrid and I've added an
> EditCommandColumn
>
>
> Dim EditCol As New EditCommandColumn
> EditCol.EditText = "Edit"
>
> EditCol.UpdateText = "Update"
>
> EditCol.CancelText = "Cancel"
>
> EditCol.HeaderText = "Modifica"
>
> myDataGrid.Columns.Add(EditCol)
>
> AddHandler myDataGrid.EditCommand, AddressOf Me.dg_Edit
> AddHandler myDataGrid.UpdateCommand, AddressOf Me.dg_Update
>
> AddHandler myDataGrid.CancelCommand, AddressOf Me.dg_Cancel
>
> The problem is that every time (if a click the "update or delete link") I
> got the EditCommand event instead of the UpdateCommand or CancelCommand.
>
> Why?!?!?!
>
>
>
> Thanks Vanessa
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<asp:EditCommandColumn/> bugs in PushButton? angus ASP .Net 1 05-14-2004 09:51 AM
CausesValidation of editcommandcolumn George Durzi ASP .Net 1 02-12-2004 02:40 AM
DataGrid EditCommandColumn not firing events properly. Rick ASP .Net 1 02-02-2004 05:03 AM
DataGrid EditCommandColumn not firing events properly. Richard Ryerson ASP .Net 0 01-28-2004 06:50 PM
EditCommandColumn validation RobS ASP .Net 4 12-11-2003 03:51 PM



Advertisments