Ejemplo n.º 1
0
        private void ProcessInRowHeaderMouseDown(GridPanel panel)
        {
            if (panel.TopLeftHeaderSelectBehavior != TopLeftHeaderSelectBehavior.NoSelection)
            {
                bool select = (_SelectAllCount != panel.SelectionUpdateCount);

                if (select == true)
                {
                    if (panel.MultiSelect == true)
                    {
                        panel.SelectAll();
                    }
                    else if (panel.ActiveRow != null)
                    {
                        panel.ClearAll();
                        panel.ActiveRow.IsSelected = true;
                    }
                }
                else
                {
                    panel.ClearAll();
                }

                if (select == true)
                    _SelectAllCount = panel.SelectionUpdateCount;
            }
        }