Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi there, please help, am very new to programming. i want to load one of my database tables into a checked ListBox Control, so that, when am deleting records, i can be able to check multiple records and click the delete button at once. please help me with a sample code i can use to go about this.

Yours faithfully
Martin
Posted

1 solution

katumbamartin wrote:
please help, am very new to programming.


In what context are you writing code then ?


katumbamartin wrote:
i want to load one of my database tables into a checked ListBox Control, so that, when am deleting records, i can be able to check multiple records and click the delete button at once


A listbox has a data source property. Then you can iterate over it's checkeditems collection to find the items to delete. It's not possible to write sample code without knowing your DB schema, but either way, if you're so new, you should learn C# before you worry about learning SQL at the same time.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900