DataGridView控件的单元格能否显示多行?如何实现?
表中的数据有的字段数据比较长,当列宽不够时不能全部显示,请教大家,应该如何实现全部显示字段内容,当列宽调小时,能够自动换行显示?
------解决方案--------------------帮你顶一下吧,
------解决方案--------------------up
------解决方案--------------------设置DataGridViewColumn.DefaultCellStyle   
 将wrapmode设置为true
------解决方案--------------------在网上有多行ComboBox下载
------解决方案--------------------这个很难了,你要去找其他替代控件会比较好!!! 
 或者自行讲DataGridView重绘,我也是网上看到的!!!
------解决方案--------------------DataGridViewColumn column2 = datagridview.Columns[columnsIndex]; 
             DataGridViewCell celWheat2 = new DataGridViewTextBoxCell(); 
             column2.DefaultCellStyle.WrapMode = true; //设可以回行 
             celWheat2.Style.BackColor = color; 
             column2.CellTemplate = celWheat2;   
 QQ5970356