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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

60545 May 7,2007 09:01 PM UTC May 8,2007 02:35 PM UTC WinForms 3
loading
Tags: Grouping
James Blibo
Asked On May 7, 2007 09:01 PM UTC

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 11:29 PM UTC

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 02:22 PM UTC

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 02:35 PM UTC

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.

Warning Icon 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.Close Icon

;