Prevent filtercondition from being reapplied to grid

I have a grid grouping grid with a complex record filter applied to its table descriptor. I have a method that does thru the data table the grid is bound to and updates every row in the table. I believe the record filter is being reevaluated when the underlying data table is being modified. Is there any way to prevent the record filter from being reevaluated when the data in the underlying data table is modified? The columns I'm changing are not part of the filter.



1 Reply

RB Ragamathulla B Syncfusion Team September 3, 2011 03:11 PM UTC

Hi Nikesh,

Thank you for your interest in syncfusion products.

you can acheive your desired using RecordFilters_Changing event.The following code explain the same.

Private Sub RecordFilters_Changing(ByVal sender As Object, ByVal e As Syncfusion.Collections.ListPropertyChangedEventArgs)
If e.Action = Syncfusion.Collections.ListPropertyChangedType.Add Then
Dim rd As RecordFilterDescriptor = TryCast(e.Item, RecordFilterDescriptor)
Dim a() As String = rd.Name.Split("["c,"]"c)
For j As Integer = 0 To a.Length - 1
If gridGroupingControl1.TableDescriptor.Columns.Contains(a(j)) Then
If Not ht.Contains(a(j)) Then
ht.Add(a(j), a(j))
End If
End If
Next j
End If
End Sub

Let me know if you have any furthere concern.

Regards,
Ragamathullah B.


Loader.
Up arrow icon