Does a custom DataGridView Cell have to have a parameterless constructor?

Posted by clawson on Stack Overflow See other posts from Stack Overflow or by clawson
Published on 2010-04-23T04:09:09Z Indexed on 2010/04/23 4:13 UTC
Read the original article Hit count: 408

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about datagridview