Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
520
Shift select doesn' work correctly after selecting a row by code
posted

In the attached example Shift-select doesn' work correctly after selecting a row by code.
Situation: Tree with 100 entries. SelectType is ExtendedAutoDrag. Before searching the SelectType is changed to Single so only the one found row is selected.

- Select Row #5
- Enter 20 in text field and press search button
- Messagbox shows, that row 20 is selected and active
- Shift click in row 22

Expected behaviour: rows 20 - 22 are selected
Experienced behaviour: rows 5 - 22 are selected.

This is the search code:
Me.ugdTcodes.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Single

        For Each uRow As Infragistics.Win.UltraWinGrid.UltraGridRow In Me.ugdTcodes.Rows
            If uRow.Cells("Tcode").Value.toupper = Me.txtSearchStringGrid.Text.ToUpper Then
                uRow.Activate()
                uRow.Activated = True
                uRow.Selected = True
            Else
                uRow.Selected = False
            End If
        Next
        Me.ugdTcodes.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.ExtendedAutoDrag


Are there more properties of the tree/rows to be taken into account or is this an error?

UGridTest.zip