Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 763321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:32:30+00:00 2026-05-14T16:32:30+00:00

I want a slight variation of the custom cell example from the MS website

  • 0

I want a slight variation of the custom cell 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 so I could use it later, namely to evaluate something when painting the cell.

Private _o as MyObject
Public Sub New(ByVal o As MyObject)
MyBase.New()
_o = o
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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T16:32:31+00:00Added an answer on May 14, 2026 at 4:32 pm

    At a guess, the table is going to use reflection (Activator.CreateInstance) to create instances of the cell on a per-row basis; so yes – it will need a public parameterless constructor to do that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a slight variation on the window.opener.reload javascript. Normally, if I want to
Want to send the text from my current vb application to the Active Window
I want the following requirement. But there is slight change on it. http://acrisdesign.com/demo/toggle/ Please
I'm trying to generate scripts from a database, but with slight modifications to those
Whilst developing I want to handle some things slight differently than I will when
slight problem. I have a 20 x 20px delete icon which I want to
i've got a slight jQuery problem. What i want is to load a particular
Hey guys, I got this JS code and want to add a slight fade
Short story: I want to make slight changes to the behavior of a MainClass,
I want to introduce a slight wait during some testing functions, to simulate a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.