EditCommandColumn

V

Vanessa Berni

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
 
T

TY.Ng

vanessa,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top