Hi I wanted to format datagridtextboxcolumn in .net compact framework 2.0which does not support format, so when I search for help from MSDN this sample code code was there but I am finding difficulty with the "sub new()" They said the code is the same in .net framework 2.0, so I would be grateful if anyone could help.
Visual Basic(declaration)
Code:
 Public Sub New(_ prop AS PropertyDescriptor, _ Format As String _)

Visual Basic(Usage)
Dim prop As PropertyDescriptor
Dim format As String
Dim instance As New DataGridTextBoxColumn(prop, format)


Visaul Basic Code

Private Sub AddColumn()
    Dim myTable As New DataTable()
    
    ' Add a new DataColumn to the DataTable.
    Dim myColumn As New DataColumn("myTextBoxColumn")
    myColumn.DataType = System.Type.GetType("System.String")
    myColumn.DefaultValue = "default string"
    myTable.Columns.Add(myColumn)
    ' Get the CurrencyManager for the DataTable.
    Dim cm As CurrencyManager = CType(Me.BindingContext(myTable), CurrencyManager)
    ' Use the CurrencyManager to get the PropertyDescriptor for the new column.
    Dim pd As PropertyDescriptor = cm.GetItemProperties()("myTextBoxColumn")
    Dim myColumnTextColumn As DataGridTextBoxColumn
    ' Create the DataGridTextBoxColumn with the PropertyDescriptor.
    myColumnTextColumn = New DataGridTextBoxColumn(
Code:
pd
) ' Add the new DataGridColumn to the GridColumnsCollection. dataGrid1.DataSource = myTable dataGrid1.TableStyles.Add(New DataGridTableStyle()) dataGrid1.TableStyles(0).GridColumnStyles.Add(myColumnTextColumn) End Sub 'AddColumn
The bold pd give error of "Too many argument on public sub new()"

I declare in the sub new as this
Code:
  Public Sub New(ByVal prop As PropertyDescriptor, ByVal Format As String)

        ' This call is required by the Windows Form Designer.
        InitializeComponent()
        ' Add any initialization after the InitializeComponent() call.
    End Sub
This is the error I get
(Argument not specified for parameter "Format" of public sub New(prop as system.Componetmodel.PropertyDescriptor, Format as String)
and
(Argument not specified for parameter "Prop" of public sub New(prop as system.Componetmodel.PropertyDescriptor, Format as String)

I will be very much grateful if anyone could help me on the declaration and how to go about it. Thanks