我想用SqlDataAdapter去填充listView1中的各项,应该怎么实现?
这是我已经写好的代码,下面该怎么做?
希望高手指教,谢谢!!!
SqlCommand cmd1 = new SqlCommand();
cmd1.CommandText = "select * from song_table where song_name="+txt_ch_name .Text ;
cmd1.Connection = strconn.conn;
SqlDataAdapter dr = new SqlDataAdapter(cmd1 );
...全文
14118打赏收藏
关于SqlDataAdapter中填充的问题?各位大哥,帮帮忙!
我想用SqlDataAdapter去填充listView1中的各项,应该怎么实现? 这是我已经写好的代码,下面该怎么做? 希望高手指教,谢谢!!! SqlCommand cmd1 = new SqlCommand(); cmd1.CommandText = "select * from song_table where song_name="+txt_ch_name .Text ; cmd1.Connection = strconn.conn; SqlDataAdapter dr = new S