DevExpress GridControl Unbound Columns

Jerald picture Jerald · Jun 22, 2011 · Viewed 12.9k times · Source

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!

Answer

DevExpress Team picture DevExpress Team · Jun 22, 2011

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