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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:08:09+00:00 2026-05-24T08:08:09+00:00

whether possible Bind complex list to DataSource a GridView with all members? such as:

  • 0

whether possible Bind complex list to DataSource a GridView with all members?

such as:

    public class Car
    {
        private string _make;
        private string _model;
        private int _year;
        private int _speedCollection;

        public Car(string make, string model, int year)
        {
            _make = make;
            _model = model;
            _year = year;
        }

        public string Make
        {
            get { return _make; }
            set { _make = value; }
        }

        public string Model
        {
            get { return _model; }
            set { _model = value; }
        }

        public int Year
        {
            get { return _year; }
            set { _year = value; }
        }

        public List<MyClass> SpeedColections 
        {

            get { return _speedCollection; }
            set { _speedCollection = value; }


        }


    }


   public class MyClass
    {
       private int _speed;
       public int Speed
       {
            get { return _speed; }
            set { _speed = 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-24T08:08:10+00:00Added an answer on May 24, 2026 at 8:08 am

    Yes, it is possible. And it will work, except for the SpeedCollections member, unless you specify another public member that would return, say, a string representation of Speed (comma separated values or something of this sort)

    Update

    This is an example of a member that would return a string representation of SpeedCollections:

    Warning! Potential pseudo-code ahead, I cannot currently compile or test, so make your adjustments when needed

    public string SpeedRepresentation
    {
        get
        {
            return string.Join(",", 
                               _speedCollection.Select(s => s.Speed().ToString())
                                               .ToArray());
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whether it is possible to get the Text of a HTML <select> list instead
I wonder whether it is possible to find what is the encoding of string?
Whether this is possible I don't know, but it would mighty useful! I have
I was wondering whether it is possible to limit the number of characters we
I want to know whether it is possible to commit to a previous version.
Please tell me whether it is possible to use both SimpleUrlHandlerMapping and AnnotationMapping in
I am wondering whether it is possible to make dynamic variables in Java. In
I was wondering whether it was possible for projects in Eclipse to have multiple
Does anyone know whether it's possible to modify the workflow actions of a SharePoint
I would like to know whether it is possible to force LWP::UserAgent to accept

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.