且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在datagridview的特定列中制作模糊的文本

更新时间:2023-02-06 18:01:51

您有几个选择:

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

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

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

3.不要在演示中使用敏感数据!在许多公司中,(相当正确地)禁止使用真实的用户信息进行测试和演示.拥有一个副本数据库,其中包含混淆的数据-是随机生成的还是从真实数据生成的(请参阅此搜索以获取有关如何实现此目的的想法- ^ ]-我没有任何建议,这就是为什么我发布搜索结果而不是一篇文章的原因,尽管我确实在CodeProject ^ ]
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[^]