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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:15:49+00:00 2026-06-16T00:15:49+00:00

I have a DataGridView being populated using CoolStorage (ORM) CSList class as its DataSource.

  • 0

I have a DataGridView being populated using CoolStorage (ORM) CSList class as its DataSource. It is displaying Contacts and it’s the ContactType column that instead of displaying the underlying ContactTypeName just displays “ContactType” for every record.

I cannot change the value of that cell by stepping through the rows as it’s data bound, although when hovering over DataSource I can see that it has the ContactTypeName is available as a property of ContactType.

Is there a way I can change what value is displayed in the ContactType cells (I’m thinking something like an equivalent to ComboBox’s DisplayMember) without having to manually constuct a DataTable from my result set?

Many 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-06-16T00:15:50+00:00Added an answer on June 16, 2026 at 12:15 am

    The only One way I know of to do it without setting up columns manually is to override the ToString() function of the ContactType class.

    If you want to edit it, however, you’ll need to set up the columns manually.

    Just about every other grid UI I’ve worked on needed to have the colums set up manually for one reason or another.

    Another alternative is to bind to a wrapper class (basically a ViewModel) that exposes the ContactName as a property rather than as a related object. You could even do two-way binding with that model.

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

Sidebar

Related Questions

I have DataGridView and I set DataSource of datagridview by using DataTables. DataTable dt
I have a datagridview bound to a datasource, column[0] AgencyName is a primary key
I am using CoolStorage as an ORM and have a question regarding how often
I have a DataGridView being regularly populated via data-bound objects, and the number of
I currently have a 2-column wide DataGridView, the first column being a DataGridViewTextBoxColumn and
I have a DataGridView on my Form which is being populated with database records
I have a datagridview being populated by a collection of objects. the values within
I have DataGridView with two columns. The first column is TextBoxCol(DataGridViewTextBoxColumn) and the Second
I have datagridview with checkbox column, but I want, that some of the columns
I have a datagridview with a column with checkbox in it. What I am

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.