using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace TestGroupingView
{
    public partial class Commands1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblMessage.Text = "";
        }

        protected void ShowMessage(string msg)
        {
            lblMessage.Text = msg + "<hr />";
        }

        protected void GroupingView1_Command(object o, UNLV.IAP.WebControls.GroupingViewCommandEventArgs e)
        {
            ShowMessage(string.Format("Command triggered in {2}:  CommandName='{0}'; CommandArgument='{1}'"
                , e.CommandName, e.CommandArgument
                , e.CommandTemplate.ToString()
                ));
        }
    }
}
