回复 5楼CanYou8的帖子
使用键盘相关事件,比如PreviewKeyDown。
- private void c1FlexGrid1_PreviewKeyDown(object sender, KeyEventArgs e)
- {
- if (c1FlexGrid1.ActiveEditor == null && (e.Key == Key.Enter))
- {
- e.Handled = true;
- c1FlexGrid1.StartEditing(true, 1,1);
- }
- }
复制代码 |
|