francisMi
francisMi

Reputation: 935

Checkboxlist Event on change the state C#

In c# I have a checkboxlist. Now I want to do something each time the state of one of the checkboxes changes (so from checked to unchecked or from unchecked to checked). Which Event do I need for this? The problem is that a simple clickEvent doens't work because it's like I need to click twice on a checkbox to check or uncheck it. (it first selects it, and just then it checks or unchecks).

Thanks a lot!

Upvotes: 0

Views: 8294

Answers (2)

Sani Huttunen
Sani Huttunen

Reputation: 24375

The event your looking for is SelectedIndexChanged:

ASP.NET or Winforms

Upvotes: 2

Erez Robinson
Erez Robinson

Reputation: 784

Use the OnSelectedIndexChanged event.
Look at : MSDN

Upvotes: 1

Related Questions