1、datagridview自带的tooltip显示单元格内容的方法 namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); this.dataGridView1.ShowCellToolTips = true; this.toolTip1.AutomaticDelay = 0;//提示延迟 this.toolTip1.ShowAlways = true;//是否显示文本 this.toolTip1.ToolTipTitle = "";//窗口标题 this.toolTip1.UseAnimation = true;//动画效果 this.toolTip1.UseFading = true;//淡入淡出效果 } private void Form1_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); SqlConnection con = new SqlConnection("server = XQ-20160210KQLE\\SA;uid = sa;pwd = 123456;database = JYXinXi"); try