This question is locked. New answers and comments are not allowed.
I think I have a bug, or at least a wrong way to do it.
I have a small grid with both column and row virtualization. This Grid has 5 columns (2 GridViewComboBoxColumn and 1 GridViewDataColumn)
By default, I can only see the first 3 columns, and scroll to the last two, no probem there.
I also implemented a way to programmatically navigate inside a row using the tab key, and when I hit tab on the last visible column to go to the next one, the browser crash.
I think it might be linked to the columnvirtualization mechanism.
If I disable it, the grid navigation works then as expected.
Here's the code that navigates in a row using the tab key :
Regards
Ludovic
I have a small grid with both column and row virtualization. This Grid has 5 columns (2 GridViewComboBoxColumn and 1 GridViewDataColumn)
By default, I can only see the first 3 columns, and scroll to the last two, no probem there.
I also implemented a way to programmatically navigate inside a row using the tab key, and when I hit tab on the last visible column to go to the next one, the browser crash.
I think it might be linked to the columnvirtualization mechanism.
If I disable it, the grid navigation works then as expected.
Here's the code that navigates in a row using the tab key :
| void KeyDownTabAction() |
| { |
| var element = (GridViewRow)this.FormGrille.CurrentCell.ParentRow; |
| var cellIndex = element.Cells.IndexOf(FormGrille.CurrentCell); |
| if (cellIndex > element.Cells.Count - 1) |
| { |
| this.btn_new.Focus(); |
| } |
| else |
| { |
| if (((GridViewCell)element.Cells[cellIndex]).IsEnabled == true) |
| { |
| ((GridViewCell)element.Cells[cellIndex]).IsCurrent = true; |
| FormGrille.BeginEdit(); |
| } |
| else |
| { |
| this.btn_new.Focus(); |
| } |
| } |
| } |
Regards
Ludovic