Hi guys,
I have a XamGrid with some customized columns.
I have set : DeleteKeyAction = Infragistics.Controls.Grids.DeleteKeyAction.DeleteSelectedRows;
If I select a row:
If the first column is a textBox, for example, when I press the Delete key, first a letter from the Text of TextBox is deleted and only after that, it deletes the row.
My idea is that the rowSelector should get the focus, and then it works fine, but I don't have access in code to the row selector.
Now, it works only if I double-click the row selector, but this is not what I want.
Please, tell me, how can I manage this?
Hi,
When you click a RowSelector, it actually makes the first cell in the row the active cell. When a cell becomes active, it sets focus to the celll's content.
You could use the RowSelectorClicked event, to take away focus from the cell.
-SteveZ
As I said in the previous post, I consider that it would be appropriate that the RowSelector would take the focus, on RowSelectorClicked event, but I can not access the RowSelector.
Because taking away the focus from the cell means to get focus of another control, isn't it?
So, is there a way to access the RowSelector in order to take the focus, or which is the part of the dataGrid which should take the focus, such that the cell would loose the focus?
Thanks!
It'd actually probably be better for you to just set focus to the xamGrid instead.
xamGrid1.Focus()
Thanks, Steve, it's a good idea.