Hi Jacob
Thanks for the answer, I have understood that I cannot use
the standard editor of the DataGridColumns.
I could perhaps revolve my problem if I was able somehow
to execute some code when the designer is closed.
My idea is to use a new property of the DataGrid custom, a
collection of objects BoundColumnFilter (my DataGridColumn
custom) for then to transfer its content to the standard
collection "Columns" when the designer is closed.
My problem is that I don't find an event that is called at
the closing of the designer (es. type UnLoad)
Some suggestion? If I make an override on Dispose can i
modify the collection column?
Giorgio
[quoted text, click to view] >-----Original Message-----
>Please refer to the following URL.
>
>
http://www.metabuilders.com/Faq.aspx >"...
>I can't add custom columns to my toolbox.
>...
>The only way to add the column is to edit the html
portion of the page. In
>tools like vstudio, you will also have to add a reference
to the dll.
>..."
Hi Luke
Thank for your answer
[quoted text, click to view] >correct at runtime. The custom DataGrid column can only
be added from code,
>not from Designer.
>
Defining a DataGrid property of the type:
[
PersistenceMode(PersistenceMode.InnerDefaultProperty),
DesignerSerializationVisibility
(DesignerSerializationVisibility.Content),
]
public virtual BoundColumnFilterCollection
ColumnsFilter
{
get
{
return _columns;
}
set
{
_columns = value;
}
}
I succeed without problems in adding columns custom
through the designer!
Then with a method of the designer I move the customs
Column to the standard collection "Column", again I
succeed in seeing and to modify the columns custom in the
designer but
obviously I don't see the new ownerships that I have added
to the columns custom.
My problem is to perform only once this transfer at the
closing of the designer.
Thankyou again.