GridView显示mysql的text字段数据system.byte[]
MySQLConnection conn = new MySQLConnection(ConfigurationManager.AppSettings["MySqlConn2"]);
MySQLCommand commn = new MySQLCommand("set names gb2312", conn);
conn.Open();
commn.ExecuteNonQuery();
MySQLDataAdapter cmd = new MySQLDataAdapter(sql, conn);
DataSet ds = new DataSet();
cmd.Fill(ds, "table1");
GridView1.DataSource = ds;
GridView1.DataBind();
后台连接数据库的代码,请问大神要怎么转string类型后再绑定数据
顺便还有个小问题GridView控件上和左的外边框是不是不显示的 GridLines="Both" 默认的
[解决办法]