如何在datagridview的特定列中制作模糊的文本 [英] How to make blurred text in a particular column of the datagridview

查看:135
本文介绍了如何在datagridview的特定列中制作模糊的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个datagridview,其中的一列包含真实数据.我希望此列显示的数据在我发布项目时看起来模糊,以便没有人可以读取此数据.谁能帮助我.如果您能在vb.net 2010中用一些代码举例说明,我将不胜感激.

我尝试过的事情:

1.我查找了datagridview的属性和函数.
2. datagridview的ForeColor属性.

I have a datagridview, in which one of the columns have real data. I want that this column to show the data look blurred when I release the project so that nobody can read this data. Can anyone help me on that.I would be grateful if you could illustrate with some code in vb.net 2010.

What I have tried:

1.I looked up the datagridview properties and functions.
2. ForeColor property of datagridview.

推荐答案

您有几个选择:

1.不要首先显示数据.您评论说,包含数据的表单必须出于演示目的而发布,但我认为演示中datagridview中缺少一列不会破坏"它.

2.混淆列-我想这就是您所说的模糊文本"的意思.据我所知,您将必须在数据上添加一些内容或使用不可读的字体.

以上两种情况都涉及仅出于演示目的而更改软件-这有点步骤并且有些冒险.更好的方法是...

3.不要在演示中使用敏感数据!在许多公司中,(相当正确地)禁止使用真实的用户信息进行测试和演示.拥有一个副本数据库,其中包含混淆的数据-是随机生成的还是从真实数据生成的(请参阅此搜索以获取有关如何实现此目的的想法-字符串模糊处理系统 [ ^ ]
You have a few options:

1. Don''t show the data in the first place. You have commented that the form containing the data has to be published for demo purposes but I contend that one column missing from the datagridview in the demo will not "break" it.

2. Obfuscate the column - I guess this is what you mean by "blurred text". As far as I know you would have to layer something over the data or use an unreadable font.

Both the above involve changing your software purely for the demo - that''s a bit step and somewhat risky. A far better approach is ...

3. Don''t use sensitive data for your demo! In many companies it is (quite rightly) forbidden to use genuine user information for testing and demonstrations. Have a copy database that has obfuscated data in it - either generated randomly or generated from real data (see this search for ideas on how to achieve that - Google[^] - I don''t have any recommendations which is why I''ve posted the search results rather than a single article, although I did find this on CodeProject Strings Obfuscation System[^]


这篇关于如何在datagridview的特定列中制作模糊的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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