是否可以指示 DataGridView 单元格用星号屏蔽输入的字符?
有没有办法在输入时将 DataGridView
单元格中输入的字符替换为星号?如果是这样,我该怎么做?任何帮助表示赞赏。
Is there a way to replace the characters entered in a cell of a DataGridView
with an asterisk while entering them? If so, how can I do this? Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如 Mark Rideout 在中所写的那样在 Social.msdn.microsoft.com 上找到的答案
As Mark Rideout writes in his answer found on social.msdn.microsoft.com
尝试这个
在 DataGridView EditingControlShowing 事件
和单元格格式化事件中
希望这有帮助
try this
in the DataGridView EditingControlShowing event
and in the Cell Formating Event
hope this helps