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.
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.