如何在C#.Net中的数据网格控件具有冻结属性true的情况下将文本包装在单元格中? [英] How to wrap the text in a cell while having the frozen property true for data grid control in C#.Net?

查看:85
本文介绍了如何在C#.Net中的数据网格控件具有冻结属性true的情况下将文本包装在单元格中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据网格(C#.Net2.0),其中有多个在运行时创建/可见的列,并且某些可见的列的 frozen属性为true . br/>
加载表单时,描述列的内容不会被包装.许多内容被其他行隐藏或重叠.当我尝试将description列的wrap模式属性设置为true(也将Frozen属性也保持为true)并保存时,数据网格立即被删除.我现在更改任何column属性,然后在保存/删除数据网格后立即将其删除/删除.

我必须将description列的wrap模式属性设置为true,以便行不会重叠,并且special(description)列的内容也清晰可见,另一方面,也要保持其他列的冻结属性为真.

如何解决这个问题呢? :confused:

I have a data grid (C#.Net2.0) in which there are multiple columns that are created/visible at runtime and some of the columns that are visible have their frozen property true.

When the form is loaded the description column content is not wrapped. Much of the content gets hidden or overlapped by the other rows. When i try to make the wrap mode property of the description column to true (keeping the frozen property true as well) and save it then the data grid immediately gets deleted. I change any of the column property now then immediately after saving the data grid gets deleted/removed.

I have to make the wrap mode property of description column true so that the rows don''t overlap and content of particular(description) column is clearly visible also on the other hand keeping the frozen property of other columns true.

How to solve this problem? :confused:

推荐答案

Varun Sareen写道:
Varun Sareen wrote:

如何解决此问题?



好吧,首先您可以告诉我们什么是网格?我无法从您的描述中推断出这一点,如果没有此信息,我怀疑其他任何人都可以.如果您希望人们提供帮助,这是非常重要的信息.



Well, for a start you could tell us what the grid is? I can''t deduce it from your description and, without this info, I doubt that anybody else could. This is pretty vital information if you want people to help.


谢谢皮特,我已经对问题进行了必要的更改.
Thanks Pete, I have done the necessary changes in the question.


这篇关于如何在C#.Net中的数据网格控件具有冻结属性true的情况下将文本包装在单元格中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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