Example #1
0
        public void HandleGridClick(EventData e, object a) {
            CellSelection args = (CellSelection)a;

            object item = _grid.GetDataItem(args.Row.Value);
            if (item.GetType()==typeof(Group))
            {
                IGroupedDataView dataView = (IGroupedDataView)_grid.GetData();
                Group group = (Group)item;
                if (group.Collapsed)
                {
                   dataView.ExpandGroup(group.GroupingKey);
                }
                else
                {
                    dataView.CollapseGroup(group.GroupingKey);
                }
                e.StopImmediatePropagation();
                e.PreventDefault();
            }
           
        }