Just overriding the attribute won't solve the problem as designer just uses it to detect which properties have value changed. You need to oevrride the entire property, have true as default return value for it, and also apply the DefaultValue attribute
<DefaultValue(True)> _
Public Overrides Property AllowSorting() As Boolean
Get
Dim obj As Object = ViewState("AllowSorting")
If obj Is Nothing Then
Return True
End If
Return CBool(ViewState("AllowSorting"))
End Get
Set(ByVal value As Boolean)
ViewState("AllowSorting") = value
End Set
End Property
Thanks,
Teemu Keiski
Finland, EU