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. Image for the cookie policy date

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

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.


3 Replies

HA haneefm Syncfusion Team 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


JB James Blibo 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.


JB James Blibo 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.

Loader.
Live Chat Icon For mobile
Up arrow icon