Edit button in datagrid doesn't work!?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ante Perkovic

    Edit button in datagrid doesn't work!?

    Hi,

    I have this piece of code:
    <asp:datagrid id="dgRezervira no" runat="server" CssClass="rezer vacije"
    AutoGenerateCol umns="false" DataKeyField="i d" Width="650px">
    ....
    <asp:EditComman dColumn ButtonType="Pus hButton" UpdateText="OK"
    CancelText="Can cel" EditText="Edit" ></asp:EditCommand Column>

    and in codeBehind, I have:
    Private Sub dgRezervirano_E ditCommand(ByVa l source As Object,
    ByVal e As DataGridCommand EventArgs) Handles dgRezervirano.E ditCommand
    dgRezervirano.E ditItemIndex = e.Item.ItemInde x
    ...
    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
Working...