如何将位值更改为网格控制中的字符串

发布于 2025-02-07 22:08:58 字数 166 浏览 2 评论 0原文

我正在尝试在DeVexpress网格控制中显示数据。我有一个名为“性别”的列,该列需要比特值。我想显示一个数据,当它1时,细胞显示女性和0个细胞显示男性时。

“在此处输入图像说明”

I'm trying to display data in devexpress grid control. I have a column called gender that takes bit values. I want to display the data that when its 1 the cell show Female and when its 0 the cell show male.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蛮可爱 2025-02-14 22:08:58

只需添加columeditem,然后将其设置为Lookupedit即可。
添加lookupedit两个项目,第一个是带有true的文字男性的,第二个带有文本女性的值为false。
将列设置为ReadOnly
因此,每当该价值为真时,它都会显示男性,而对于false

希望,这对女性来说也是如此。
随时提出任何问题

just add columEditItem and set it to lookUpEdit.
Add in lookUpEdit two items the first with text male having a value true and the second with text female having a value false.
Set the column to readOnly
So,whenever the value is true it will shows male and same for female on false

hope this helps you.
feel free to ask any question

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文