AJH.CMS.WEB.UI.Admin.ManageCategory_UC.gvCategory_RowCommand C# (CSharp) Method

gvCategory_RowCommand() private method

private gvCategory_RowCommand ( object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e ) : void
sender object
e System.Web.UI.WebControls.GridViewCommandEventArgs
return void
        void gvCategory_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            switch (e.CommandName)
            {
                case "EditCategory":
                    int CategoryID = 0;
                    int.TryParse(e.CommandArgument.ToString(), out CategoryID);

                    if (CategoryID > 0)
                    {
                        ViewState[CMSViewStateManager.CategoryID] = CategoryID;
                        BeginEditMode();
                        upnlCategoryItem.Update();
                    }
                    break;
            }
        }
        #endregion