Datagridview userdefined unbound column properties [modified]
-
...is this possible? how do you add userdefined properties to the dgv unbound column properties designer. i want to add a user defined properties on the unbound columns settings that can be set during design time
Life - Dreams = Job TheCardinal BenPOS Systems
modified on Sunday, November 22, 2009 11:24 PM
-
...is this possible? how do you add userdefined properties to the dgv unbound column properties designer. i want to add a user defined properties on the unbound columns settings that can be set during design time
Life - Dreams = Job TheCardinal BenPOS Systems
modified on Sunday, November 22, 2009 11:24 PM
I don't think that's possible; you are essentially asking to modify framework types. That's generally not possible. But in most cases we can derive new types from them (when they are not sealed). In this case you could perhaps derive a custom grid type from DataGridView, a column type from DataGridViewColumn, and have your custom grid use your custom column for unbound columns. That way you can add whatever properties you like and associate your own designer class and type editors with it if you wish.
-
I don't think that's possible; you are essentially asking to modify framework types. That's generally not possible. But in most cases we can derive new types from them (when they are not sealed). In this case you could perhaps derive a custom grid type from DataGridView, a column type from DataGridViewColumn, and have your custom grid use your custom column for unbound columns. That way you can add whatever properties you like and associate your own designer class and type editors with it if you wish.
thanks for the reply, thats what im afraid, but i have already tried to look for more commercial product that can easily be extended :D thanks for the input, ill try your idea :D
Life - Dreams = Job TheCardinal BenPOS Systems