protected virtual void OnCheckBoxClicked(DataGridViewCheckBoxHeaderCellEventArgs e)
 {
     if (this.CheckBoxClicked != null)
     {
         this.CheckBoxClicked(this, e);
     }
 }
        private void RaiseCheckBoxClicked()
        {
            //raise event
            DataGridViewCheckBoxHeaderCellEventArgs e = new DataGridViewCheckBoxHeaderCellEventArgs(!_Checked);

            this.OnCheckBoxClicked(e);
            if (!e.Cancel)
            {
                this.Checked = e.Checked;
                this.DataGridView.InvalidateCell(this);
            }
        }
 protected virtual void OnCheckBoxClicked(DataGridViewCheckBoxHeaderCellEventArgs e)
 {
     if (this.CheckBoxClicked != null)
     {
         this.CheckBoxClicked(this, e);
     }
 }
 private void RaiseCheckBoxClicked()
 {
     //raise event
     DataGridViewCheckBoxHeaderCellEventArgs e = new DataGridViewCheckBoxHeaderCellEventArgs(!_Checked);
     this.OnCheckBoxClicked(e);
     if (!e.Cancel)
     {
         this.Checked = e.Checked;
         this.DataGridView.InvalidateCell(this);
     }
 }