I have a custom Grid. The grid uses a data table populated from a dataview with one column added to the data table. By default the enter key does not go to the next row. I have an event handler and now it moves to the next row same column. The problem is that I can’t get the active cell to be editable using code. I have tried activation and it doesn’t seem to work. here is the code in the event handler. What am I missing?
if ((args.KeyCode == Keys.Enter))
{
try
{
string ACEll;
EpiUltraGrid grid = (EpiUltraGrid)sender;
ACEll = grid.ActiveCell.Column.Key;
var a = grid.ActiveCell.Activation;
grid.ActiveRow = grid.Rows[grid.ActiveRow.Index+1];
grid.ActiveCell = grid.ActiveRow.Cells[ACEll];
grid.ActiveCell.Activation = a;
}
catch (System.Exception )
{
}
}