Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
how to make cell active when it has been disabled
posted

I have a cell (“process_order”) that is inactive w/no tab stop until the user makes a selection in another column (“selected”) on the row; once the user clicks the “selected” cell, I would like to activate the “process_order” cell and have the “process_order” cell become the active cell.

I have the code working to enable/activate the cell but the process always jumps to the next cell (“email”) in the row instead of the newly the “process_order” cell – any ideas? Thanks

 

            if (this.grdResults.ActiveRow != null && (bool)this.grdResults.ActiveRow.Cells["selected"].Value )

                                                {

                    this.grdResults.ActiveRow.Cells["process_order"].IgnoreRowColActivation = true;  //just in case…

                    this.grdResults.ActiveRow.Cells["process_order"].TabStop = Infragistics.Win.DefaultableBoolean.True; //ensure the user can actually stop there

                    this.grdResults.ActiveRow.Cells["process_order"].Activation = Activation.AllowEdit; //allow editing of the cell

                    this.grdResults.PerformAction(UltraGridAction.EnterEditMode, false, false); // what the heck this might help too

                    this.grdResults.ActiveRow.Cells["process_order"].Selected = true; // thinking this should really do the trick - nope

                    this.grdResults.ActiveCell = this.grdResults.ActiveRow.Cells["process_order"]; // if not this one should –right?

            }

 

I have tried this and variations of this in the following events:

BeforeCellDeactivate, AfterCellUpdate, BeforeExitEditMode