We're using the grid to create forms for users to fill out. Every cell is disabled with
this.dgMain.Model.TableStyle.Enabled = false;
to start out. Then the cells we want them to fill in are enabled as we create them. In our first section, starting at row 6, the first enabled GridStyleInfo is in column 2, and this continues to row 11, where only column 2 cells are enabled. At row 12, we have a read only "header" row.
At row 13, we pick up with having the column 2 cells enabled again. This is all fine until we get to row 15. This time there are 2 read only header rows.
At row 18, the enabled cells are now in column 6. Tabbing from row 15 column 2 to row 18 column 6 does not work.
From 18 down to 35, the enabled cells are column 6. To further complicate things, at rows 24 and 27, in column 12, there are enabled cells. If we start tabbing at row 18, column 6, it gets down to (24, 6), then moves over to (24, 12), but then moves to (27, 6), skipping over (25, 6) and (26, 6). It then stops at (27, 12) and doesn't go to (28, 6).
We have even set the WrapCellBehavior to WrapRow.
I've attached some code, as well as two screenshots, one showing what actually happens while tabbing (actualgrid.bmp) and the other shows the expected tabbing behavior (desiredgrid.bmp). There's three issues here. Tabbing stops at the end of section 1 (where the enabled boxes are in column 2). Then in section 2, when the enabled boxes are in column 6, the first issue is why it skips rows 25 and 26 after it moves to column 12 on row 24, and how come it stops on row 27 column 12?
grid_31230b18.zip