围绕鼠标的立体星环
╰荣小弟╯ミ 专属地带 ~~
.............................要有目的地学O(∩_∩)O
private void button1_Click(object sender, EventArgs e)
        {
            SqlConnection con = new SqlConnection("server=.;database=pubs;user id=sa;password=123");
            con.Open();
            DataSet dst = new DataSet();
            SqlCommand cmd =new SqlCommand ("select title_id,type from titles",con );
            SqlDataAdapter dap = new SqlDataAdapter(cmd);
            dap.Fill(dst);
            this.dataGridView1.DataSource = dst.Tables[0].DefaultView;
        }
//注;此处与web编程有有一句话的区别哟。。。
posted on 2008-09-24 16:07  ╰荣小弟╯ミ  阅读(82)  评论(0)    收藏  举报