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 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

Is there a way to bind the child properties of an object to datagridview?
I'm trying to bind a list of custom objects to a WPF Image like
I am trying to bind a DataGridView to a List, where MyObject looks like
I have a Winform DataGridView , which has a number of predefined columns. Now
Is it possible to bind a particular column in datagridview to another datasource, while
I am building a WinForms application with a few custom business objects. I bind
I am new to c# and try to bind a datagridview to a mssql
I want to bind datagridview in windows application with dynamically changed datatable. I have
I would like to bind a DataGridView to the results of a query generated
I'd like to bind a configuration file to my executable. I'd like to do

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.