Hi.

I want to write a Component that exposes 2 properties.First is type of DataGrid, and second is DataColumn. I should fill this properties in designer.
I wrote something like this

class MyComponent : Component
{
 private DataGrid _dg;
 private DataColumn _dc;

 public DataGrid
 {
  get{ return _dg; }
  set{ _dg = value; }
 }

 public DataColumn Column
 {
  get{ return _dc; }
  set{ _dc = value; }
 }
}

So, when i'm trying to choose a datagrid from disigner, it works perfect. But when i'm choosing DataColumn in Column propery, i can't see generated code in InitializeComponent method.
I need that desiner generate something like
this.objMyComponent.Column = dataColumnChosen;