Dear Mike S.,
How's your day going ?
(Infragistics NetAdvantage for .Net 2008 for Windows).
Easy one. Have 3 Infragistics.Win.UltraWinGrid.UltraGrid and 1 Infragistics.Win.Misc.UltraButton on a User Control.
(We place all controls on a User Control, then each User Control on its own form, a 1-to1,
1 User Control to 1 form). How come when tabbing around the form/user control user sees NO
indication where focus is until returning to the UltraButton (which has the conventional dash-lined
perimeter) ????
Further, if one clicks inside one of the UltraGrids and activates a row, tabbing will take the user to
the last column of the row, but is it then possible to TAB OUT OF THAT GRID AND ON TO THE NEXT
CONTROL ??? that is to continue tabbing about the form from control to next control as though the
row of an UltraGrid had never been activated ???
See I told you Mike . . . an easy one.
Best,
XPXJ
I'm not sure why you can't see the focus on the grids. I would think the grid would display a focus rectangle around the ActiveRow when the grid has focus. Maybe there is no ActiveRow?
To allow tabbing out of a grid, you probably want to set the TabNavigation property.
OK. You are exactly right about ActiveRow and focus rectangle.
Due to biz reqs the user is req'd to make a selection in ALL grids, i.e. no default ActiveRow. ("Ours is not to reason why, ours is but to do or die" Bob (the eternal Semper Fi guy on the team)).
We have Infra input on this . . . and we've been recommended it be done thusly:
====================================
Dim rowCount As Integer = Me.RoyaltyRatesGrid.Rows.Count
rowCount = Me.DiscountsGrid.Rows.Count
Me.RoyaltyRatesGrid.ActiveRow = Nothing
Me.LicenseSelectorGrid.ActiveRow = Nothing
Me.DiscountsGrid.ActiveRow = Nothing
Anyway . . . that leaves the issue of TABBING from grid to grid . . .
If I comment out the above code (setting ActiveRow to Nothing) the user still sees no focus
when TABbing to the next grid, even though focus is advancing grid to grid, then to the <Save>
button which DOES have the focus rectangle. The focus rectangle on the <Save> button is now the
only indicaton that focus is in fact moving from control to control.
It's almost like because we once suppressed focus in these grids with the above code that they
are somehow broken and now portray no evidence of receiving focus ????
Thx, XPXJ
petejordan said:It's almost like because we once suppressed focus in these grids with the above code that they are somehow broken and now portray no evidence of receiving focus ????
Hm, no, I don't see how that could possibly be. I assume these grids have rows in them?
There are quite a number of factors here that might affect the behavior, so it's really hard to guess what's going on in your application. I recommend that you try to duplicate the behavior in a small sample project and Submit an incident to Infragistics Developer Support so they can check it out and see what's going on. My guess is that some part of the grid other than the row is getting focus.
You could try checking the grid.ActiveRow and grid.ActiveCell and see if they are null. I suspect they both will be in this case.
How can we determine where focus is within a grid ?
Thank you, XPXJ