DevExpress GridControl 未绑定列
我想知道如何正确地将未绑定的列添加到网格视图中。 我在设计器中添加了一个未绑定列(设置未绑定类型、显示格式等) 但每当我运行应用程序时,尝试更改未绑定列的值并失去焦点,该值不会保存(即使在更改它时显示格式也无法正确显示)。
我一定是做错了什么。我需要帮助!
非常感谢!
I would like to know how to properly add a unbound column into a gridview.
I've added a unbound column in the designer (set the unbound type, display format and all)
but whenever I run the application, try to change the value of the unbound column and loses its focus the value is not saved (even the display format is not displaying correctly when I'm changing it).
I must be doing something wrong. I need help guys!
Much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
未绑定列不提供存储空间来保存其值。相反,GridView 发布 CustomUnboundColumnData 事件,该事件可用于向未绑定列提供数据并保存它。帮助主题包含如何使用此事件的示例。此外,您还可以在以下位置找到大量有关未绑定列的有用信息:
未绑定列
Unbound column does not provide a storage to save its values. Instead, the GridView publishes the CustomUnboundColumnData event which can be used to provide data to the unbound column and also save it. The help topic contains the example of how to use this event. Also, you will find a lot of useful information abound unbound columns at:
Unbound Columns