We use the ultragrid with a single band. we allow our users to sort and filter the row results. I need to get a list of the data rows exactly as they are shown on the screen. the code below that we are using does not return the row results in grids sorted order.
For Each r As Infragistics.Win.UltraWinGrid.UltraGridRow In Me.grdInventoryList.Rows If r.IsFilteredOut = False Then s = r.Cells("stkno").Value ht.Add(s, s) End If Next
Hi,
This code looks correct to me, although I would probably use HiddenResolved instead of IsFilteredOut.
You are saying the grid rows are not in the sorted order you see on the screen? I don't see how that's possible.
Sorry, my bad. Adding items to a hashtable which changed the order when looping the keys. Looping the rows is working perfectly.