Example #1
0
        private void CartGridView_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == System.Windows.Forms.MouseButtons.Right)
            {
                var hti = CartGridView.HitTest(e.X, e.Y);
                CartGridView.Rows[hti.RowIndex].Selected = true;

                contextMenuStrip1.Show(CartGridView, e.X, e.Y);
            }
        }