将MySQL表填到DataGridView中,怎样只显示部分列(即按照我的需求显示一些字段)
现在按照我的代码,DataGridView显示了全部的字段。怎样显示部分字段呢?private void SearchForm_Load(object sender, EventArgs e)
{
    // 将数据填到DataGridView控件里    string connString = new MySQLConnectionString("localhost", "lib", "root", "111111").AsString;
    MySQLConnection conn = new MySQLConnection(connString);    conn.Open();    string sql1 = string.Format("select * from currentborrowrecord where rid = '{0}'", "songyi");
    MySQLDataAdapter mda = new MySQLDataAdapter(sql1, conn);    DataSet ds = new DataSet();
    mda.Fill(ds, "currentborrowrecord");
    this.dataGridView1.DataSource = ds.Tables["currentborrowrecord"];
    conn.Close();
}