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

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,278
Latest member
BuzzDefenderpro

Latest Threads

Top