GridColumnStylesCollection::ResetPropertyDescriptors Method ()

 

Sets the PropertyDescriptor for each column style in the collection to null.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
void ResetPropertyDescriptors()

The following code example demonstrates the use of this member.

private:
   void ResetButton_Click( Object^ /*sender*/, EventArgs^ /*e*/ )
   {
      DataGridTableStyle^ myTableStyle = myDataGrid->TableStyles[ 0 ];
      GridColumnStylesCollection^ myColumns = myTableStyle->GridColumnStyles;

      // Reset the property descriptor of column styles collection.
      myColumns->ResetPropertyDescriptors();
   }

.NET Framework
Available since 1.1
Return to top
Show: