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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17417 |

    I have a bound grid with a bound checkbox (It’s basically an order form).

     

    I want to move to the next cell (“Qty”) when the checkbox is checked.

     

    I must be missing something. . . Any ideas?

    Also, is there a way for a bound checkbox to not show as indeterminate? I want it to just be false if possible.

     

    Imported from legacy forums. Posted by Alan (had 1271 views)

    User (Old forums)
    Member
    Post count: 23064

    I forgot to say that I’m using VS2008, .NET 3.5 & VB. . .

    Imported from legacy forums. Posted by Alan (had 369 views)

    User (Old forums)
    Member
    Post count: 23064

    Any ideas on this?

    Imported from legacy forums. Posted by Alan (had 242 views)

    Xceed Support
    Member
    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)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.