What is clearselection in built function purpose?

Bob Dang 1 Reputation point
2022-04-22T06:36:21.693+00:00

195461-image.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,474 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,159 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,031 Reputation points
    2022-04-22T08:42:12.857+00:00

    Hi @Bob Dang ,
    ClearSelection unselects any selected item. You might use this, for instance, after you've taken action on the user's selection. The available selections are left, but none of the items are selected.
    In your codes,for loop all the items and if one item's property is selected, it will change it unselected. And then continue to check the next item.

    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments