I'm on v1.61 pre-release.
-Larry
'-- Start from the back of the list and cycle through the rows to find the row index For lnCnt = Me.Count - 1 To 0 Step -1 If _CurrentDataTable.DefaultView(lnCnt).Row Is loRow Then '-- We've found our row index lnRowIndex = lnCnt Exit For End If Next
'-- Set the row index to the index of the new row _CurrentRowIndex = lnRowIndex
Hi Chan,
I guess it is to reset the filter prior adding then set the filter again, here is a pseudo code:
DIM strTempFilter as String = MyBO.FilterMyBO.Filter = String.EmptyMyBO.Add()MyBO.Filter = strTempFilter
DIM strTempFilter as String = MyBO.Filter
MyBO.Filter = String.Empty
MyBO.Add()
MyBO.Filter = strTempFilter