开发者

GridView devexpress ENTER to go down

开发者 https://www.devze.com 2023-02-15 04:23 出处:网络
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

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

精彩评论

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