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.

CurrentCell MoveTo command and CurrentCell Border or Focus Rectangle not in sync

Thread ID:

Created:

Updated:

Platform:

Replies:

60545 May 7,2007 05:01 PM May 8,2007 10:35 AM Windows Forms 3
loading
Tags: Grouping
James Blibo
Asked On May 7, 2007 05:01 PM

When I used the currentcell
MoveTo(row, col) command, how can I get the focus rectangle to move to the new current cell.

The focus rectangle is still on the old cell even though I have called MoveTo.


haneefm [Syncfusion]
Replied On May 7, 2007 07:29 PM

Hi James,

You can try this code.


this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(1,1,GridSetCurrentCellOptions.SetFocus);

Best regards,
Haneef

James Blibo
Replied On May 8, 2007 10:22 AM

Thats' exactly what I am doing...

this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(cc.RowIndex, cc.ColIndex + 1, GridSetCurrentCellOptions.SetFocus);

...but the rectangle border focus indicator still remains on the previous cell although the caret moved to the new cell.

James Blibo
Replied On May 8, 2007 10:35 AM

the snippet below...

GridRecord rec = this.gridGroupingControl1.Table.Records[2] as GridRecord;
rec.SetCurrent("Col2");


...worked for me.

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.

;