How do I store information in the database CheckedListBox? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How do I store information in the database CheckedListBox?

RaysonRayson Posts: 1Member
how do you do?
How do I store information in the database CheckedListBox ?
i am send information table groups on the checkedlistbox and this information are not limit , maybe 10 data or 30 data , but if this information on the checkedlistbox checked equal true and if button sub pushing all information tick true send for table employ. and my code for show on the checkedlistbox is :(this Code is Function)

private void info_chklb_group() {
SqlConnection con = new SqlConnection(connectionString:mycon);

SqlCommand com = new SqlCommand("select group_name,id_group from groups ");
com.Connection = con;
SqlDataReader reader = com.ExecuteReader();
while (reader.Read())
{ mojaz_chklb_groups.Items.Add(reader["group_name"].ToString());

thanks all For corporation .
Sign In or Register to comment.