Hello,
Is there a way to hide properties of custom data objects by attributes?
I would like to do something like the following:
internal class MyGridRow { public MyGridRow( Channel ch ) { this.RegisteredChannel = ch; } public string ChannelName { get { return (this.RegisteredChannel.Name + " - " + this.RegisteredChannel.Position); } } [DontUseThisPropertyWhenBoundToUltraWinGridAttribute] public Channel RegisteredChannel { get; set; } }
When I now bind a list of these objects to a grid (DataSource=...) I want the property RegisteredChannel to be ignored.
Is that possible ?
Regards
Michael
Hi Michael,
Yes:
[Browsable(false)]
Hi Mike,
I already tried [Bindable(false)], but didn't work.
Thanks a lot!