GridView devexpress ENTER to go down
How can I achieve behaviour that when user hits enter after editing selection goes to the row belo开发者_JAVA百科w (the same column) not the same row next column
thanks for help
This behavior is by design. But you can write your on implementation like,
GridView.KeyDown
{
If(Key == Enter)
Write code to go next line
}
You can check here also for more.
Check out the keyboard navigation feature.
I know this is a very late answer but I had this problem too. , As Devexpress Developers say You should handle the GridControl.ProcessGridKey event:
private void gridControl1_ProcessGridKey(object sender, System.Windows.Forms.KeyEventArgs e) {
if(e.KeyCode == Keys.Enter) {
(gridControl1.FocusedView as ColumnView).FocusedRowHandle++;
e.Handled = true;
}
精彩评论