Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
15909 | Jun 30,2004 12:03 PM UTC | Jul 1,2004 10:19 AM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
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(); }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.