protected override void OnMouseClick(MouseEventArgs e) { base.OnMouseClick(e); Section section = SectionFromPoint(e.Location); while (section != null && !(section is RowSection)) { section = section.Parent; } if (section != null) { RowSection rs = section as RowSection; OnMouseClickedRow(new RowEventArgs(rs.RowIdentifier)); CellSection cs = rs.CellSectionFromPoint(new Point(e.X, e.Y)); if (cs != null) { OnMouseClickedCell(new CellEventArgs(cs)); } } }
public CellEventArgs(CellSection cell) { Cell = cell; }