vb.net DataGridView - Replace Shortcut Key with typed character

坚强是说给别人听的谎言 提交于 2019-12-22 16:53:52

问题


I have the problem that the DataGridView has obviously a shortcut key for SHIFT + SPACE which seems to select the row.

What I would like to have is that pressing SHIFT + SPACE simply adds a space character to the current cursor position within the current cell (like for example in notepad)


回答1:


Just found out a way which works well for me.

According to http://msdn.microsoft.com/en-us/library/tb9t9a2t.aspx this shortcut key is just applied when RowHeaderSelect or ColumnHeaderSelect is used as SelectionMode - so i just changed it to CellSelect



来源:https://stackoverflow.com/questions/5339351/vb-net-datagridview-replace-shortcut-key-with-typed-character

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!