Groups | Blog | Home
all groups > dotnet windows forms designtime > december 2006 >

dotnet windows forms designtime : Property value not saved


Nintai
12/8/2006 1:34:02 PM
I have a custom DataGridViewTextBoxColumn.
I've added the following property.

<Description("Specifies a data type for validation."), _
Category("Behavior"), _
RefreshProperties(RefreshProperties.All), _

DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)>
_
Public Property DataType() As DbType
Get
Return _Type
End Get
Set(ByVal Value As DbType)
_Type = Value
End Set
End Property

When I modify the property at design time in the editor window, the
value is not saved to Designer.vb.
Any ideas why this is happening?

Mike
Bryan Phillips
1/14/2007 1:42:04 AM
The only time I have seen this occur is when the value supplied at
design-time matches the value of the property's DefaultValue attribute.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com



[quoted text, click to view]
AddThis Social Bookmark Button