Hi :
The radgridview enable group and filter. The user want to skip the next row from current row and the next row into edit mode by Enter.
1. Our code as follows to achieve the enter key, :
private voi dg_KeyUp(.....)
{ ......
if((dgCut.CurrentRow.Index+1)<dgCut.Rows.Count)
{
var row =dgCut.Rows[dgCut.CurrentRow.Index+1];
dgCut.CurrentRow=row;
if(dgCut.CurrentCell!=null)
{ dgCut.CurrentCell.BeignEdit();}
}
}
but if there is a filter by column 'Name', the enter key event behavior is strange.The current row can not skip to next row.
To solve the problem with filter,we update the code as follows:
private voi dg_KeyUp(.....)
{ ......
if((dgCut.MasterView.CurrentRow.Index+1)<dgCut.MasterView.Rows.Count)
{
var row =dgCut.MasterView.Rows[dgCut.MasterView.CurrentRow.Index+1];
dgCut.MasterView.CurrentRow=row;
if(dgCut.MasterView.ViewTemplate.CurrentColumn!=null)
{ dgCut.CurrentCell.BeignEdit();}
}
}
the result as we do is :it is Ok by Enter key if there is only exsit filter.It is not Ok if there is group and filter.
How to achieve the enter key behavior if there is a group or multiple group and a filter or multiple filter?
Greetings
Look forward to you
Ajing
The radgridview enable group and filter. The user want to skip the next row from current row and the next row into edit mode by Enter.
1. Our code as follows to achieve the enter key, :
private voi dg_KeyUp(.....)
{ ......
if((dgCut.CurrentRow.Index+1)<dgCut.Rows.Count)
{
var row =dgCut.Rows[dgCut.CurrentRow.Index+1];
dgCut.CurrentRow=row;
if(dgCut.CurrentCell!=null)
{ dgCut.CurrentCell.BeignEdit();}
}
}
but if there is a filter by column 'Name', the enter key event behavior is strange.The current row can not skip to next row.
To solve the problem with filter,we update the code as follows:
private voi dg_KeyUp(.....)
{ ......
if((dgCut.MasterView.CurrentRow.Index+1)<dgCut.MasterView.Rows.Count)
{
var row =dgCut.MasterView.Rows[dgCut.MasterView.CurrentRow.Index+1];
dgCut.MasterView.CurrentRow=row;
if(dgCut.MasterView.ViewTemplate.CurrentColumn!=null)
{ dgCut.CurrentCell.BeignEdit();}
}
}
the result as we do is :it is Ok by Enter key if there is only exsit filter.It is not Ok if there is group and filter.
How to achieve the enter key behavior if there is a group or multiple group and a filter or multiple filter?
Greetings
Look forward to you
Ajing