Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
7908 | Oct 14,2003 02:44 PM UTC | Oct 15,2003 03:42 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
Keys lastKeyCode = 0; private void gridControl1_CurrentCellKeyDown(object sender, KeyEventArgs e) { lastKeyCode = e.KeyCode; } private void gridControl1_CurrentCellMoving(object sender, GridCurrentCellMovingEventArgs e) { if(lastKeyCode == Keys.Left || lastKeyCode == Keys.Right || lastKeyCode == Keys.Up || lastKeyCode == Keys.Down) { e.Cancel = true; } }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.