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 7412693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:34:55+00:00 2026-05-29T06:34:55+00:00

Please consider my codes below: I’m getting an error Constructor on type ‘System.String’ not

  • 0

Please consider my codes below:

I’m getting an error Constructor on type 'System.String' not found. when I add new string to the collection using the PropertyGrid control.

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {
        propertyGrid1.SelectedObject = Class1.Instance.StringCollection;
    }
}

-----------------------------------------------------------------------------

public sealed class Class1
{
    private static Class1 _instance = new Class1();
    private List<string> _stringListCollection = new List<string>();

    public Class1()
    {
    }   

    public static Class1 Instance 
    {
        get { return _instance; }
    }

    public List<string> StringCollection
    {
        get { return _stringListCollection; }
        set { _stringListCollection  = value; }
    }
}
  • 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-29T06:34:55+00:00Added an answer on May 29, 2026 at 6:34 am

    When you assign List of something to PropertyGrid, it tries to show single row with modify ... button,
    where default modify dialog require Item class to have default constructor, which is not right in case of string

    You can create class with default constructor and string property in it, and assign a collection of that class instead of string

    Or you can use EditorAttribute to override default editor

    Hope this helps

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

Sidebar

Related Questions

Please consider the following code: public class Person ( public string FirstName {get; set;}
Please consider the following code: #include <iostream> #include <typeinfo> template< typename Type > void
A bit of help please, consider the bit of code below. public class Widget
I am new to java regex.Please help me. Consider the below paragraph, Paragraph :
please consider the code below, and tell me what I'm doing wrong. I want
Now please consider my below code of android layout <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
Please Consider my below xml code and screen shot(To view the large screen shotplease
Please consider this code. Is it using Circular Reference? If not why am I
Please consider the following code : string[] words = { Too, much, of, anything,
Consider the code below. I need to remove the error which is coming because

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.