DevExpress GridControl未绑定列 [英] DevExpress GridControl Unbound Columns

查看:463
本文介绍了DevExpress GridControl未绑定列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在gridview中正确添加一个未绑定的列。
我在设计器中添加了一个未绑定的列(设置unbound类型,显示格式和全部)
,但每当我运行应用程序时,尝试更改未绑定列的值,并失去其焦点值不保存(即使在更改显示格式时显示格式无法正确显示)。

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!

非常感谢!

推荐答案

不提供存储来保存其值。相反,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:

未绑定列

这篇关于DevExpress GridControl未绑定列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆