如何将位值更改为网格控制中的字符串
我正在尝试在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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需添加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