Design Time: DatagridView Colums does not display the property provided by the extender

Posted on 2008-06-26
Last Modified: 2013-12-16
Just as simple as that. The Test property is attached to controls, ListView columns, anything I want except for Columns (in Columns Collection Editor of a DataGridView). Why? Is there something I can do?

[ProvideProperty("Test", typeof(IComponent))]
        public partial class Component1 : Component, IExtenderProvider
            private Dictionary<string, string> _commponentsIntlist = new Dictionary<string, string>();
            public Dictionary<string, string> ComponentsAndStatefullProp
                get { return _commponentsIntlist; }
                set { _commponentsIntlist = value; }
            public Component1()
            public Component1(IContainer container)
            bool System.ComponentModel.IExtenderProvider.CanExtend(object obj)
                if (obj.GetType() == typeof(Component1)) return false;
                if (obj is IComponent) return true;
                return false;
            public string GetTest(IComponent component)
                if (!_commponentsIntlist.ContainsKey(component.ToString()))
                    _commponentsIntlist.Add(component.ToString(), "");
                return (string)_commponentsIntlist[component.ToString()];
            public void SetTest(IComponent component, string value)
                if (!_commponentsIntlist.ContainsKey(component.ToString()))
                    _commponentsIntlist.Add(component.ToString(), value);
                    _commponentsIntlist[component.ToString()] = value;

Open in new window

Question by:ripahoratiu
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

ripahoratiu earned 0 total points
ID: 21905407
OK I find my own answer. Basically the property exposed by the extender is there if you select in the property dropdown one of the column, but not in the columns collection editor. After digging a little bit the MS guys stated that the columns collection editor is not capable of doing that and probably will not be fixed soon.

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to Office 1 44
C# Windows app updating JSON file error. 9 39 figure out error 3 25
Making exceptions for ValidationAttribute 2 27
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question