扩大/多集中化数据网格单元格 [英] Enlarging / multilined the datagrid cell on focus

查看:59
本文介绍了扩大/多集中化数据网格单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在Winform中使用datagridview,列的类型为DatagridviewTextBoxColumn,我们想要一种方法,以便在列的焦点(在单元格上)上,该单元格看起来像具有更大长度的multilne文本框,输入数据后,它应该包起来.
是WPF中的任何此类功能...还是普通winform中的.. plz还建议其他替代方法

Hi,
I am using a datagridview in Winform, the columns are of type DatagridviewTextBoxColumn, we want a way so that on focus of a column ( on a cell ) , the cell should look like multilne text box with larger lenght and after entering the Data it should get wrap.
Is any such feature in WPF ... or in normal winform .. plz suggest other alternative also

推荐答案

嗯,您可以调整控件的大小,在WPF中可以动画它.不知道它在datagrid中的方式可能会改变它,但是我将在动画中设置控件的高度,并确保将其设置为多行,
Well, you can resize the control, and in WPF you can animate it. Not sure how it being inside a datagrid might change that, but I''d be setting the height of the control in an animation and making sure it was set to be multiline,


这篇关于扩大/多集中化数据网格单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆