在mysql中有个text类型的字段,我在用DataGrid显示这个自动的时候,单元格中都显示“System.Byte[]”这是怎么回事,我想让他显示文本内容亚!部分代码:
String query = "SELECT ipaddress,depts ,labels,rq,usrname,bz,id FROM ipmanger"; MySQLDriverCS.MySQLDataAdapter adapter = new MySQLDataAdapter(query,conn.con); DataSet SuppliersProducts = new DataSet("SuppliersProducts"); adapter.Fill(SuppliersProducts); dataGrid1.DataSource = SuppliersProducts.Tables[0];其中bz就是text类型的字段