Edit button in datagrid doesn't work!?

A

Ante Perkovic

Hi,

I have this piece of code:
<asp:datagrid id="dgRezervirano" runat="server" CssClass="rezervacije"
AutoGenerateColumns="false" DataKeyField="id" Width="650px">
....
<asp:EditCommandColumn ButtonType="PushButton" UpdateText="OK"
CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>

and in codeBehind, I have:
Private Sub dgRezervirano_EditCommand(ByVal source As Object,
ByVal e As DataGridCommandEventArgs) Handles dgRezervirano.EditCommand
dgRezervirano.EditItemIndex = e.Item.ItemIndex
...
End Sub

But, when I click on a "Edit" button, nothing happens!!! I tried with
breakpoints, but that code is never run!!!

Anybody have an idea why? And it did work 10 minutes ago!

I'm in front of PC for the last 10 hours, so I may be missing
something.

Can anybody help me?

Ante
 

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

No members online now.

Forum statistics

Threads
474,405
Messages
2,571,545
Members
48,797
Latest member
Fractal_Prime_357
Top