AD
Administrator
Syncfusion Team
July 13, 2004 11:37 AM UTC
grid.CurrentCell.MoveTo(rowIndex, colIndex)
It will also accept a third activation parameter if you want to use that as well.
AD
Administrator
Syncfusion Team
July 13, 2004 12:19 PM UTC
Thanx ! that works
I also added
Grid.CurrentCell.BeginEdit();
and I see the cursor.
But I want the cell to be filled by the user.
So I built a check in the CurrentCellValidated-event.
But if the user clicks on another cell without any filling of the cell the CurrentCellValidated-event is not fired ? Because the cell didn''t change ?
How can I force the event to be always fired ?
AD
Administrator
Syncfusion Team
July 13, 2004 12:37 PM UTC
Try using CurrentCellMoving. This event should be raised anytime the current cell is about to be moved, and you can cancel it by setting e.Cancel = true.
AD
Administrator
Syncfusion Team
July 13, 2004 12:52 PM UTC
That also doesn''t work well if the grid loses focus...
AD
Administrator
Syncfusion Team
July 13, 2004 01:11 PM UTC
In addition to setting CurrentCell.BeginEdit, also try setting CurrentCell.IsModified = true. Then you can handle the CurrentCellValidating event, and it will be hit whether you are moving cell to cell, or out of the grid (provided whatever is getting focus has CausesValidation = true).
AD
Administrator
Syncfusion Team
July 13, 2004 01:27 PM UTC
Thanx !!
I will try that (tomorrow)
AD
Administrator
Syncfusion Team
July 14, 2004 04:30 AM UTC
So I tried and it works.
Thanx a lot !