Set for the IGrouping nodes

Steven Young 261 Reputation points
2021-03-05T01:52:31.263+00:00

I have a node IGrouping, want to use LINQ to set non-first nodes to be checked.
Don't know what keyword to set the node to be checked.
Thank you

Group.Where(Function(f) f.Index > 0). (Function(f) f.Checked = True)

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,568 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 112.1K Reputation points
    2021-03-05T08:36:17.653+00:00

    Try this:

    Group.Skip(1).All(Function(n)
                            n.Checked = True
                            Return True
                        End Function)