In my project am I using checkedlistbox for retrieve the database values of one field. and I can pass this checkedlistbox checked values to another form listbox . using c# windows application .How can I do this ????? It's urgent please reply me quickly.
Loading

Sakthivel SambandamPosted Jan 17, 2018, 7:28 AM
Pavithra LPosted Sep 22, 2015, 5:21 AM
Raja TPosted Sep 22, 2015, 5:18 AM
private void display3()
{
ds1 = new SqlDataAdapter("Select str from Goods_Inward GROUP BY str ", con);
DataSet ds= new DataSet();
ds1.Fill(ds);
listBox1.DisplayMember=" str";
listBox1.ValueMember="str";
listBox1.DataSource = ds.Tables[0];
}
Please check before select query contains records or not
Pavithra LPosted Sep 22, 2015, 5:17 AM
Raja TPosted Sep 22, 2015, 5:12 AM
Pavithra LPosted Sep 22, 2015, 4:33 AM
Raja TPosted Sep 22, 2015, 3:53 AM
Raja TPosted Sep 22, 2015, 1:40 AM
Pavithra LPosted Sep 22, 2015, 1:39 AM
Raja TPosted Sep 22, 2015, 1:35 AM
Raja TPosted Sep 22, 2015, 1:30 AM
Raja TPosted Sep 22, 2015, 1:20 AM
private void display3()
{
ds1 = new SqlDataAdapter("Select str from Goods_Inward GROUP BY str ", con);
DataSet ds= new DataSet();
ds1.Fill(ds);
listBox1.DisplayMember=" str";
listBox1.ValueMember="str";
listBox1.DataSource = ds.Tables[0];
}
Raja TPosted Sep 22, 2015, 1:18 AM
private void display3()
{
ds1 = new SqlDataAdapter("Select str from Goods_Inward GROUP BY str ", con);
DataSet ds= new DataSet();
ds1.Fill(ds);
listBox1.DisplayMember=" str";
listBox1.DataSource = ds.Tables[0];
}
Raja TPosted Sep 22, 2015, 1:17 AM
private void display3()
{
ds1 = new SqlDataAdapter("Select str from Goods_Inward GROUP BY str ", con);
DataSet ds= new DataSet();
ds1.Fill(ds);
listBox1.DisplayMember=" str";
listBox1.DataSource = ds.Tables[0];
}
Pavithra LPosted Sep 22, 2015, 1:16 AM
Raja TPosted Sep 22, 2015, 1:08 AM
private void display3()
{
ds1 = new SqlDataAdapter("Select str from Goods_Inward GROUP BY str ", con);
DataSet ds= new DataSet();
ds1.Fill(ds);
listBox1.DisplayMember=" str";
listBox1.DataSource = ds.Tables[0];
}
Pavithra LPosted Sep 22, 2015, 12:25 AM
Raja TPosted Sep 19, 2015, 5:31 AM
Pavithra LPosted Sep 19, 2015, 5:28 AM
Raja TPosted Sep 19, 2015, 5:06 AM
http://www.encodedna.com/2014/04/windows-forms-checkedlistbox-csharp-vb.htm
http://www.aspforums.net/Threads/926291/Populate-CheckedListBox-from-database-in-Windows-Forms-WinForms-application-using-C-Net/