I wrote a code to create the GridView in Custom Control Page(example : HWGridView.cs). Custom Control Page(HWGridView.cs), this page have all the event that can be used in GridView including OnRowCommand..etc.
Below the code, used in aspx page for creating GridView using Custom Control,
<grid:HWGridView runat="server" ID="grdView" AllowSorting="true" OnRowCommand="grdView_RowDataBound" >
</grid:HWGridView>
How can i call OnRowCommand event from Custom Control Page(HWGridView.cs)
please refer the code from this link
http://dotnetslackers.com/articles/gridview/Custom-GridView-with-Paging-and-Filtering.aspx