Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
865
Image Click Event in WebDataGrid Never Fires
posted

I have a WebDataGrid where EnableAjax="false."  One of the columns contains an ImageButton, as follows:

 

<Columns>
                            <ig:BoundDataField DataFieldName="FileName" Key="FileName">
                                <Header CssClass="WebDataGrid_Header" Text="File Name" />
                            </ig:BoundDataField>
                            <ig:TemplateDataField Key="Delete">
                                <ItemTemplate>
                                    <asp:ImageButton ID="imgDelete" OnClick="DeleteClick" CausesValidation="false" CommandName="D"
                                        ImageUrl="~/images/icon_delete.gif" runat="server" />
                                   
                                </ItemTemplate>
                            </ig:TemplateDataField>
                        </Columns>

 

The Click Event for the image button is as follows:

 

 protected void DeleteClick(object sender, EventArgs e)
        {

}

 

But, when I click the button, the event never fires.  Can anyone explain why, and possibly provide a solution?