Well, thankfully I've sorted this out myself.

As it turns out I needed to add another attribute to the property and
inherit from
INamingContainer. The property declaration ends up looking like this:

[PersistenceMode(PersistenceMode.InnerProperty),
        Bindable(true), Category("Style"), Description("Style applied to the
Group header.")]
public TableItemStyle GroupHeaderStyle
{
        get
        {
                ...
        }
}

Obviously then need to implement some methodology of using the viewstate to
persist the settings of the property.

Anyway, thought I'd let people know.

Dan

-----Original Message-----
From: Daniel Croft [mailto:[EMAIL PROTECTED]
Sent: Friday, November 05, 2004 5:17 PM
To: [EMAIL PROTECTED]
Subject: Custom datagrid control (inherits from data grid)

---------------------- Information from the mail header
-----------------------
Sender:       "Unmoderated discussion of advanced .NET topics."

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with C#
November 29 - December 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to