I am trying to query the columns from which data will be retrieved based on the selected item with checkedListBox. But I couldn't understand the logic. Would you help me with this topic? I am using c#.

I am trying to query the columns from which data will be retrieved based on the selected item with checkedListBox. But I couldn't understand the logic. Would you help me with this topic? I am using c#.

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mehmet FatihPosted Oct 26, 2023, 8:18 PM
Thanks for your intrest, Muhammed Imran Ansari. When I try your codes, I am getting this error.
How can we send hidden checkboxlist value?
Muhammad Imran AnsariPosted Oct 26, 2023, 7:16 PM
To query columns from a database based on the selections made in a
CheckedListBoxin C#, you can use the following example as a reference. (I'm assuming you are using SQL database)