• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

hiding property

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    hiding property

    Hi,
    I have a simple property that is designed to only be used by other indicators/strategies. As such, I don't want it displayed in the property grid of my indicator. Is there some attribute I can set or way to hide it from the grid?
    I tried removing the grid category, but it just shows it in a new category called "Misc"
    Thanks ... Ed

    [XmlIgnore()]
    [Description(
    "Is First Zone Set")]
    public bool IsFirstZoneSet
    {
    get { return m_bFirstZoneSet; }
    set { m_bFirstZoneSet = value; }
    }

    #2
    Hi Ed, did you try the [Browsable(false)] attribute to not show in the grid?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      That did it! Thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bosajin, Yesterday, 06:27 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by stefanrvc, Today, 04:59 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by 7robert, Yesterday, 08:30 PM
      2 responses
      16 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by pjsmith, Today, 01:13 AM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by yukashg, Yesterday, 09:56 PM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Working...
      X