본문 바로가기
WPF - DevExpress

WPF & DevExpress GridControl Move to next cell

by 캡틴노랑이 2021. 4. 1.
반응형

그리드 셀 이동.

Winform과 다르게  WPF는 화살표 탭으로 셀간 이동이 가능하다...

하지만, 기본 기능 이외에 입력하고, Enter키 등으로 이동해야할 때가 있다. 

이동할 때 계산등 뭔가의 action이 필요하면... MoveNextCell() 전, 후로 넣으면 될 듯하다.

 

 

 

 

 

 

 

 

 

 

 

참고

((TableView)sender).FocusedColumn 은 더 이상 사용하지 않는다고 하는데... 사용은 됨...

이런거 있어야 될 것 같은데... 대체로 생긴 것이 무엇인지 찾을 수 없었다. 

 

셀이동시 현재 셀에서 다음 다음 으로 가고 싶을 때는...

 (sender as TableView).MoveNextCell();

 (sender as TableView).MoveNextCell();

2번 쓰면 된다...

 

 

 

 

devexpress에서 지원하는 기본 이동 키

Navigate Through Rows and Cells

  • Mar 10, 2020
  • 2 minutes to read

End users can use the Arrows, Tab, Home, End, Page Up, Page Down keys and the mouse to move focus between cells and rows.

Specify the DataViewBase.EnterMoveNextColumn property to change the Enter key behavior:

  • false (default) - the Enter press opens/closes the focused cell's in-place editor and saves changes;
  • true - the Enter press closes the focused cell's in-place editor (if active) and saves changes, moves focus to the next cell and activates its editor.

#In the Table View

Press Tab to focus the next cell (or Right Arrow if the caret is at the end of the cell's text).

Press Tab+Shift to focus the previous cell (or Left Arrow if the caret is at the beginning of the cell's text).

Press Home to focus the first cell in a row.

Press End to focus the last cell in a row.

Press Page Up or Ctrl+Home to focus the first row.

Press Page Down or Ctrl+End to focus the last row.

#In the Card View

Press Tab to focus the next cell.

Press Tab+Shift to focus the previous cell.

Press Home to focus the first card.

Press End to focus the last card.

Press Page Up to focus the left card or go to the previous page.

Press Page Down to focus the right card or go the next page.

#Focus the Automatic Filter Row

Do one of the following:

 

 

 

 

 

WPF - Detect when ENTER key is pressed in a grid

supportcenter.devexpress.com/ticket/details/q467204/wpf-detect-when-enter-key-is-pressed-in-a-grid

 

Detect when enter key is pressed in a grid cell

supportcenter.devexpress.com/ticket/details/t612298/detect-when-enter-key-is-pressed-in-a-grid-cell

 

View.FocusedColumn no longer available?

supportcenter.devexpress.com/ticket/details/q325381/view-focusedcolumn-no-longer-available

 

WPF Grid Control - Move to Next Row and Multi-cell paste

supportcenter.devexpress.com/ticket/details/q494853/wpf-grid-control-move-to-next-row-and-multi-cell-paste

 

Navigate Through Rows and Cells

docs.devexpress.com/WPF/6558/controls-and-libraries/data-grid/end-user-capabilities/navigate-through-rows-and-cells

반응형

댓글