Compact Framework Datagrid - 单元格中的 X
我添加了一些额外的列,现在这些 X 又回来了,但只出现在某些列的第一行。 XI 的意思是单元格的背景像一个大x 一样交叉。我以前也遇到过这个问题,通过将交替颜色设置为白色来解决它。除了向数据网格添加 3 个额外的列之外,没有其他任何更改。
有人知道如何摆脱它们吗?谢谢!
PS:无论谁投票决定关闭,都应该放下架子,开始工作
I added few extra columns, and now these X are back but only on the first line on certain columns. By X I mean the background the cell is crossed over like a large x. I used to have this issue before and solved it by setting the alternating color to white. Nothing else has been changed aside from adding 3 extra columns to the datagrid.
Anyone knows how to get rid of them? Thanks!
PS: whoever voted it for closing should really get off the high horse and get to work
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能是列设置为图像列并且图像源无效。至少这是我的经历。检查您为该列图像提供的来源。
编辑:
然后尝试处理 DataError对于引发错误的列,还会显示红色 x。
It's probably that the columns are set to image columns and the image source is invalid. This has been my experience at least. Check the source you are providing for the image of the column.
Edit:
Then try handling DataError as it will also present red x's for columns that have thrown errors.
显然,CF 不喜欢在 column.MappingName 属性中使用加号和减号。
Apparently, CF doesn't like it when plus and minus signs are used in column.MappingName property.