ComponentOne DataGrid for WPF and Silverlight
AsEnumerable(Predicate<DataGridRow>,Predicate<DataGridGroupRow>) Method

C1.Silverlight.DataGrid Namespace > DataGridRowCollection Class : AsEnumerable(Predicate<DataGridRow>,Predicate<DataGridGroupRow>) Method
The predicate.
The recursion predicate. Where to process children rows in a group or not.
Returns the row collection as IEnumerable. i.e. All rows that are not DataGridGroupRow: AsEnumerable((r) => !(r is DataGridGroupRow), null); i.e. All currently rows being shown (include group children of visible groups): AsEnumerable(null, (g) => g.GroupRowsVisibility == Visibility.Visible)
Syntax
'Declaration
 
Public Function AsEnumerable( _
   ByVal predicate As System.Predicate(Of DataGridRow), _
   ByVal recursionPredicate As System.Predicate(Of DataGridGroupRow) _
) As System.Collections.Generic.IEnumerable(Of DataGridRow)
public System.Collections.Generic.IEnumerable<DataGridRow> AsEnumerable( 
   System.Predicate<DataGridRow> predicate,
   System.Predicate<DataGridGroupRow> recursionPredicate
)

Parameters

predicate
The predicate.
recursionPredicate
The recursion predicate. Where to process children rows in a group or not.
See Also

Reference

DataGridRowCollection Class
DataGridRowCollection Members