how can you make a property in the property Grid control become disabled at run time. I know that at desing time you can just say something like this in the class you want the grid to display:
VB Code:
  1. <CategoryAttribute("Catagory"), [ReadOnly](True), DescriptionAttribute("Description")> _
  2.     Public Property TestProperty() As Integer
  3.         Get
  4.  
  5.         End Get
  6.         Set(ByVal Value As Integer)
  7.  
  8.         End Set
  9.     End Property

but how can i change the Property Atributes at run time?