开发者

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;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜