精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • ds.Tables[0].Rows.Count > 1

    ds.Tables[0].Rows.Count > 1
    private void button2_Click_1(object sender,EventArgs e)
    {
    DataSet ds = new DataSet();
    string consqlserver = "Data Source=.;Initial Catalog=留言板;Integrated Security=SSPI";
    string sql = "SELECT * FROM liuyan";
    SqlConnection con = new SqlConnection(consqlserver);
    SqlDataAdapter da = new SqlDataAdapter(sql,con);
    try
    {
    da.Fill(ds);
    if (ds.Tables[0].Rows.Count > 1)
    {
    dataGridView1.DataSource = ds.Tables[0];
    }
    }
    catch
    {
    }
    finally
    {
    con.Close();
    con.Dispose();
    da.Dispose();
    }
    }
    其他人氣:336 ℃時間:2020-03-25 13:49:44
    優(yōu)質(zhì)解答
    DataSet ds = new DataSet();// 創(chuàng)建一個內(nèi)存集合,就像一個大大框一樣,里面可以放很多很多的tablestring consqlserver = "Data Source=.;Initial Catalog=留言板;Integrated Security=SSPI";//字符串連接string sql ...
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版