This project is read-only.
1
Vote

OnRowCommand for CoolGridView is not firing

description

Hi all, I'm facing issue where the OnRowCommand for the CoolGridView is not firing at all. Here is my codes:

ASPX:

<cc1:CoolGridView ID="CoolGridView1" runat="server" Height="300px"
                            Width="1000px" AutoGenerateColumns="False" onrowcommand="CoolGridView1_RowCommand" AllowSorting="True"  OnSorting="Sort">

                            <BoundaryStyle BorderColor="Gray" BorderWidth="1px" BorderStyle="Solid"></BoundaryStyle>

                            <AlternatingRowStyle BackColor="#EEEEEE" />
                            <Columns>
                                <asp:BoundField DataField="SysCode" HeaderText="Sytem Code"  
                                </asp:BoundField>
                                <asp:BoundField DataField="SysAbbrv" HeaderText="Abbreviation" 
                                    SortExpression="SysAbbrv" >
                                </asp:BoundField>
                                <asp:BoundField DataField="SysTitle" HeaderText="Title">
                                </asp:BoundField>
                                <asp:TemplateField ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="false" 
                                            CommandName="UpdateRec" Text="Update" ></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle BackColor="#CCCCCC" />
</cc1:CoolGridView>

Code Behind:

Sub CoolGridView1_RowCommand(ByVal sender As Object, ByVal e As GridViewCommandEventArgs)
   If e.CommandName = "UpdateRec" Then
        'Do something here... 
   End If
End Sub

comments