Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
private void CheckboxListBind() { SqlConnection conn = new SqlConnection("connection string"); conn.Open(); SqlDataReader dr; SqlCommand cmd = new SqlCommand("SELECT ename FROM employee", conn); dr = cmd.ExecuteReader(); while (dr.Read()) { checkedListBox1.Items.Add(dr.GetValue(0).ToString()); } conn.Close(); }
Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
Login to post response