Hi,
UltraGrid has about 70 key mappings default, I don't want some of them like press del to delete rows.
Grid.KeyActionMappings.Remove only support input of index or KeyActionMappingBase object. If I want to remove all del keys, what should do.?
Done, for each KeyActionMappings to delete mapped keys.
It's not a good idea to use a ForEach loop for this. If you remove items from the list inside a ForEach loop, then the loop itself will become corrupt and you will end up skipping some items - even though you may not realize it.
The thing to do is to loop through the collection using an indexer and loop backwards from KeyActionMapping.Count-1 to 0.