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 selectedExperienced 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?
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello ,
I have reviewed and test your code and as far as I can see you forgot to cleared the selected rows collection, before performing your custom search. Please add the following code line
ugdTcodes.Selected.Rows.Clear()
in btnSsearchGrid_Click event, just before If Me.txtSearchStringGrid.Text.Length = 0 Then Return
Please let me know if you have any further questions.
Sorry, it does not work.
I got mixed up (Shift - Ctrl). It has been working with Ctrl-Click but not with Shift-Click. Still same behaviour now with hotfix 2009.
It is fixed in 2011.1.2009.
Not sure about other releases though.