using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        if (e.CommandName == "RowClick")
        {
            RadGrid1.SelectedIndexes.Clear();

            e.Item.Selected = true;

            GridDataItem item = e.Item.OwnerTableView.ParentItem;
            while (item != null)
            {
                item.Selected = true;
                item = item.OwnerTableView.ParentItem;
            }
        }
    }
}
