Hi,

Sorry for opening new topic instead of replying, but this is a
completely new issue.

I found out that changing one line of code in Page.Load event handler
causes a button handler not to run at all. Original line, that caused
edit button handler in datagrid not to run was:

me.databind()

Then I changed it to:

myDataList.databind()

.... and everything went fine! I tried to switch it back and forth, and
even put some breakpoints. Obviously, me.databind locks button handlers
in some way (?!). Does anyone have similar experience with
me.databind()?

Ante

Ante Perkovic wrote:
> 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!