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

  • SEARCH
  • Home
  • 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 4034350
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:57:40+00:00 2026-05-20T11:57:40+00:00

If you bind a DataGridview (winform) to a list of objects can you define

  • 0

If you bind a DataGridview (winform) to a list of objects can you define which object property , a string, should be used for the column titles?

At the moment its using the properties names from the objects.

or is it possible to bind a separate datasource, another object, to the column headers for the purpose of defining these titles?

UDATE

Example

public string field_one{get;set;}

Shows up as “field_one” as the column header. I would like…

public string header_one{get;set;}
public string field_one{get;set;}

row.header_one="Friendly Header Title";
...........
List<row> rows = new List<row>();

So that the column header is “Friendly Header Title”

or to have a list of headers in a separate object, list of objects or other list based type.

example

class header...
{
...
 public string header_column_one{get;set;}
..
}

....

class row....
{
...
 public string field{get;set;}
..
}

…….
……..

header.header_column_one="Nice Friendly Header"

List<row> rows = new List<row>();

Is this possible?

  • 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-20T11:57:41+00:00Added an answer on May 20, 2026 at 11:57 am

    If i’m reading your question right, you’re asking about setting the titles for the columns. DataGridViewColumn’s HeaderText is your ticket.

    MSDN Search “DataGridViewColumn”

    http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn.aspx

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

Sidebar

Related Questions

I have an list of objects (PrintJob) that I bind to a DataGridView. Here
I am trying to bind the itemssource property of my datagridview to a list
This question (along with its answer) explains why you can't easily bind a DataGridView
I have a List of customers that I'm trying to bind to a DataGridView.
I have a datable myTable, which is bind with a DataGridView dgv. The DataGridView
I have a DataGridView that I am trying to bind to a list. I
I have a Winform DataGridView , which has a number of predefined columns. Now
I tried to bind List<T> to DataGridView . Everything seemed to be ok before
Just wonder how to let datagridview bind to object rather than database? Any example?
I have a List that I want to bind to a DataGridView in 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.