السلام عليكم
لدى هذا الكود
string constr = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Library System;Data Source=.";
SqlConnection con = new SqlConnection(constr);
con.Open();
SqlCommand scm = new SqlCommand();
scm.Connection = con;
//default
{
scm.CommandText = "select Subject,Title ,Author from Books ";
DataTable dt = new DataTable();
SqlDataAdapter adpt = new SqlDataAdapter(scm);
adpt.Fill(dt);محتاج استكمل الكود انى - لو كان صحيح-
اريد ان fill combox بأسماء ال columan
لما اضغط ع combox يظهر لى أسماء ال columan name ال هى
Subject,Title ,Author
وشكرا جزيلا