Although it would be very simple, but I can not get it today.
I have a user control that contains a grid control.
public Unit Width
{
get
{
return CustomerGrid.Width;
}
set
{
CustomerGrid.Width = value;
}
}
I expand the width property, and when I set it in the constructor, it works at runtime, but not at design time.
Which class I inherit or the method overrides to make my controls function at design time.
Note. I tried to inherit from WebControl but got a message
Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class
Rob
source
share