hi , i want to select each row in my wingrid.
i try it with
For Each selectedRow As UltraGridRow In Grid_Anlagen1.Rows selectedRow.Selected = True Next
but it would be always select one row (of 200)
The SelectTypeRow is most likely set to Single. Change it to Extended:
grd.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended
You can do above in the designer, e.g. via Feature Picker -> Selection -> Row Selection
In code, good place for it is in InitializeLayout:e.Layout.Override.SelectTypeRow = UltraWinGrid.SelectType.Extended
Your row selection code will then work, but you can also accomplish the same thing with one line of code, like this:
grd.Selected.Rows.AddRange(grd.Rows.All)
Trausti
hi trausti, thanks for your reply. but that i have already done
Me.Grid_Anlagen1.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended
Me.Grid_Anlagen1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelecti go through a loop to each row and in dependence on certain criteriai want select the row. i have aprox. 200 rows, i must select (for example ) 40 rows, but i have always select one
Hi,
I just wanted to know if you were able to solve your issue based on my suggestions or you still need help? Just let me know.
Thank you.