Here are the examples of the csharp api class System.Windows.Forms.DataGridViewCell.OnMouseClick(System.Windows.Forms.DataGridViewCellMouseEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
View licenseprotected override void OnMouseClick(DataGridViewCellMouseEventArgs e) { if (checkBoxArea.Contains(e.X, e.Y)) { var newStateIsChecked = CheckedState != CheckState.Checked; CheckedState = newStateIsChecked ? CheckState.Checked : CheckState.Unchecked; selfChanging = true; foreach (var cell in Cells) { if (cell == DataGridView.CurrentCell) { // workaround for updating current cell DataGridView.CurrentCell = null; } cell.Value = newStateIsChecked; } selfChanging = false; } base.OnMouseClick(e); }