How do I store information in the database CheckedListBox?

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.

Howdy, Stranger!

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