Does a custom DataGridView Cell have to have a parameterless constructor?
- by clawson
I want to slight variation of the custom cell code example from the MS website
How to: Customize Cells and Columns in the Windows Forms DataGridView Control by Extending Their Behavior and Appearance
by passing an argument to the custom cell constructor.
Public Sub New(ByVal a As Object)
End Sub
but then when I run the code it throws and exception
MissingMethodException occured
No parameterless constructor defined for this object.
Does this mean that custom cells must have a parameterless constructor?
Thanks.