We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

about CurrentCell ...

Thread ID:

Created:

Updated:

Platform:

Replies:

11722 Mar 14,2004 06:11 PM Mar 16,2004 02:26 AM Windows Forms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 14, 2004 06:11 PM

I use gridControl ,I don't know how to set a Cell with CurrentCell and set the cursor into it .

Administrator [Syncfusion]
Replied On March 15, 2004 01:04 AM

Try this.gridControl1.CurrentCell.MoveTo(someRow, someCol, GridSetCurrentCellOptions.SetFocus); If you are doing this from FormLoad, you may also have to call this.gridControl1.ForceCurrentCellMoveTo = true;

Administrator [Syncfusion]
Replied On March 15, 2004 05:52 PM

many thanks !

Administrator [Syncfusion]
Replied On March 15, 2004 08:41 PM

it's not work ,the cell get Focus . but cursor didn't move into the cell that I set . I require that like mouse click on the cell .

Administrator [Syncfusion]
Replied On March 16, 2004 02:26 AM

Make sure the grid has focus as well by calling this.grid.Focus() before the MoveTo call. If that does not make things work, then in addition, call this.grid.CurrentCell.BeginEdit() after the MoveTo call. Is this grid embedded in some container like a TabPage or child form or ??. If so, you may need to also call something to make it the active control. Eg, if the grid''s parent is a form, then you might call this.ActiveControl = this.grid.

CONFIRMATION

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;