6
Answers

Combo box check box object

person

person

15y
7.4k
1
Hi,

I have a combobox whose itemstemplate is a check box whos itemsource is a collection of objects, say a Person.

Each person has a name and so this will be the checkboxes content.

However now I want to find out which checkbox in the comboboxs' collection is checked, though when I call - (this.MainComboBox.Item[i] as CheckBox).IsChecked  - fails because there is "no" check box.

How do I access the IsChecked property of the items in the combobox given that the item source is a collection on objects?

Thanks greatly in advance.

Person.
Answers (6)
1
Amit Gupta

Amit Gupta

NA 16.5k 25.7k 7y
Have you tried checking running the same in sql with the same credentials and servername? Have a look to this link https://blog.devoworx.net/2017/01/30/connection-timeout-expired-pre-login-handshake/amp/
Accepted
0
Umer Ali

Umer Ali

NA 65 1.3k 7y
yes when i login to sql server management it connects