Please note: In an effort to better serve you, we are in the process of restructuring DevCenter. In the process, we have moved many items that you may be used to finding in DevCenter over to the Main Site. If you are having trouble locating something, please try looking at the following places:
All the keyboard behavior of the grid is determined by the KeyActionMappings collection. This collection can be modified to alter the keyboard behavor. By default, the collection already contains definitions for Tab key behavior. So in order to make the grid respond to Enter, all that must be done is to go through the KeyActionMappings and add a corresponding mapping for the Enter key that matches each Tab key entry.
The following sample code loops through all the KeyActionMappings in the grid. Whenever if finds a KeyActionMapping for the Tab key, it creates a copy of the mapping that applies to the Enter key, instead of tab and adds it to the collection. In VB.NET:
In C#: