DevExpress GridControl Unbound Columns

断了今生、忘了曾经 提交于 2019-12-31 05:25:11

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/6432940/devexpress-gridcontrol-unbound-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!