Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1350
Hide properties of custom data object
posted

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

Parents
No Data
Reply Children