I've got a grid set up that's got five columns and only two are editable. Instead of making my poor user slog through the three fixed cells, I'd like to be able to hop from one to the next. I tried the following bit of code:
Private Sub grdOpenItems_AfterCellUpdate(sender As Object, e As CellEventArgs) Handles grdOpenItems.AfterCellUpdate
If Not isLoading Then If e.Cell.Column.Key = "Apply-To" Then e.Cell.Row.Cells("Amt. Applied").Activate() grdOpenItems.PerformAction(UltraGridAction.EnterEditMode) End If End If End Sub
..in the hopes that it would allow me to skip the un-editable cells. No dice. It just goes to the next cell over as it would if no event code was present. I've traced through the code and know the .Activate() and PerformAction calls are happening.
Suggestions?
Thanks!
g.
Perfect, thanks!
I added some code in the InitializeLayout event to set the TabStop property on the columns I wanted to skip.
Hello G.
Please take a look into the TabStop property on your UltraGridColumns. You should be able to set that to false to prevent the user activating a cell in that column through tab.
Please let me know if I can further assist you.