private void button1_Click(object sender, System.EventArgs e) { this.grid.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll; this.grid.CurrentCell.MoveTo(2,3); this.grid.Focus(); }
TextBox tb; Timer timer1 = new System.Windows.Forms.Timer(); //in formload this.timer1.Tick += new System.EventHandler(this.timer1_Tick); private void button1_Click(object sender, System.EventArgs e) { this.grid.CurrentCell.MoveTo(2,3, GridSetCurrentCellOptions.SetFocus); this.grid.Focus(); this.tb = grid.CurrentCell.Renderer.Control as TextBox; if(this.tb != null) this.timer1.Enabled = true; } private void timer1_Tick(object sender, System.EventArgs e) { this.timer1.Enabled = false; tb.SelectAll(); }