Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi Dear
I am Having Table contain Names of People I displayed That on grid,But the Number of records may vary every now and then but will not exceed to 10.
So i am having 10 checkboxes i want to read the code from database and Assign AParticular columns row values to each checkbox.
I tried using following code but didnt worked

What I have tried:

 dim chk as checkbox 
For Each item In AirPuriUnitList  
chk.items.Add(_UnitValue)  
Next 
Posted
Updated 5-Jan-17 1:42am
Comments
[no name] 3-Jan-17 9:01am    
Checkboxes do not have an "items" collection for you to add anything to. You should get a decent book on programming and work through it and learn the fundamentals.
Maciej Los 3-Jan-17 15:22pm    
chk variable has been declared, but never initialized.
Herman<T>.Instance 4-Jan-17 4:21am    
chk is CheckBox, not checkBoxLIST

1 solution

 
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