Necessary to make the text of the bill that comes to be selected, what does not happen with my code.
If e.KeyCode = Keys.Up Then appGrid.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.AboveCell)ElseIf e.KeyCode = Keys.Down Then appGrid.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.BelowCell)End If
Hi,
I'm afraid I do not understand your question.
The situation is as follows...In event KeyDown of my grid i put a code:
that happens when I press the up and down it goes into edit mode selects the most content of the ballot.And I need to get the contents of the note is selected.
Excuse my English, I am Brazilian and I'm using google translator.
One thing to note is that there may very well be an entry in the KeyActionMappings collection for the up and down arrow keys, which means that in addition to the action you are performing by calling PerformAction, the grid will execute the action mapped to that key immediately thereafter, which is almost certainly going to cause unexpected behavior. You should set e.Handled to true when you do something with the keystroke, so the grid doesn't process it.
Regarding the enter key: when an entry in the KeyActionMappings collection is found for a given key, we return true from the control's IsInputKey method for it, which causes the runtime to interpret the key as handled, and thus does not perform the default navigational action for it. If you remove all members from the KeyActionMappings collection for a given key, IsInputKey will then return false for that key, allowing the default processing to take place.
I tried to understand more technical was very English. Could you explain for example?I would be most practical to understand.