
Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hi Luke
Thank for your answer
>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.
Giorgio
MSFT - 31 Oct 2003 11:57 GMT
Hi Giorgo,
I may misunderstand your description. I mean you can't add a column to
datagrid in designer like dragging a control from toolbox. For a custom
column, it is better to add it to datagrid's column collection in code at
runtime. For example, you can move the custom in PreRender event. If you
just want perform this at design time, you may take a look the those
interfaces in .NET framework:
IDesignerHost Interface
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemComponentModel
DesignIDesignerHostClassTopic.asp
IContainer Interface
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemComponentModel
IContainerClassTopic.asp
IRootDesigner Interface
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemComponentModel
DesignIRootDesignerClassTopic.asp
IDesigner Interface
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemComponentModel
DesignIDesignerClassTopic.asp
Luke
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)