Beispiel #1
0
        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));
                }
            }
        }
Beispiel #2
0
 public CellEventArgs(CellSection cell)
 {
     Cell = cell;
 }