private void dispView_MouseDownEvent(object sender, AxgrproLib._IGRDisplayViewerEvents_MouseDownEvent e)
 {
     if (e.button == GRMouseButton.grmbRight)
     {
         contextMenu.Show(dispView, e.xPos, e.yPos);
     }
 }
        private void dispView_MouseDownEvent(object sender, AxgrproLib._IGRDisplayViewerEvents_MouseDownEvent e)
        {
            if (e.button == GRMouseButton.grmbRight)
            {
                contextMenu.Show(dispView, e.xPos, e.yPos);
            }

            selectNoEnd = Report.DetailGrid.Recordset.RecordNo;

            try
            {
                if (Report.ColumnByName("CheckBox") == null)
                {
                    return;
                }
                if (Report.ColumnByName("CheckBox").Visible)
                {
                    if (isSelect)
                    {
                        //isSelectEnd = true;
                        if (dispView.RowCount == 0)
                        {
                            return;
                        }
                        Report.DetailGrid.Recordset.First();
                        int i = 0;
                        while (!Report.DetailGrid.Recordset.Eof())
                        {
                            Report.DetailGrid.Recordset.Edit();
                            if (selectNo < selectNoEnd)
                            {
                                if (i >= selectNo && i <= selectNoEnd)
                                {
                                    Report.FieldByName("Checked").AsInteger = (int)GRSystemImage.grsiChecked;
                                }
                                //else
                                //    Report.FieldByName("Checked").AsInteger = (int)GRSystemImage.grsiUnchecked;
                            }
                            else
                            {
                                if (i <= selectNo && i >= selectNoEnd)
                                {
                                    Report.FieldByName("Checked").AsInteger = (int)GRSystemImage.grsiChecked;
                                }
                                //else
                                //    Report.FieldByName("Checked").AsInteger = (int)GRSystemImage.grsiUnchecked;
                            }

                            Report.DetailGrid.Recordset.Post();
                            Report.DetailGrid.Recordset.Next();
                            i++;
                        }

                        dispView.UpdateViewer();
                    }
                }
            }
            catch (Exception E)
            {
                MessageBoxEx.Show(E.Message);
            }
        }