Home Forums WinForms controls Xceed Grid for WinForms Move Focus to the next cell in the row / checkbox question Reply To: Move Focus to the next cell in the row / checkbox question

Xceed Support
Post count: 5658

Hi Alan,
You could try to handle the CheckChanged event on the underlying CheckBox used as the TemplateControl of the CellEditorManager on the said column.
You could use the following code with some modifications in order to successfully implement your scenario.


WinCheckBox winCheckBox = new WinCheckBox();
            winCheckBox.CheckedChanged += new EventHandler(winCheckBox_CheckedChanged);
            CellEditorManager cellEditorManager = new CellEditorManager(winCheckBox, “Text”, true, false);

            this.starterGrid.DataRowTemplate.Cells[“Discontinued”].CellEditorManager = cellEditorManager;


        void winCheckBox_CheckedChanged(object sender, EventArgs e)
            WinCheckBox winCheckBox = sender as WinCheckBox;
            if (winCheckBox.CheckState == CheckState.Checked)
                Cell CurrentCell = ((GridControl)(winCheckBox.Parent).Parent).CurrentCell;
                this.starterGrid.CurrentCell = CurrentCell.ParentRow.Cells[“ReorderDate”];

Imported from legacy forums. Posted by Mohamed [Xceed] (had 1252 views)