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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:25:51+00:00 2026-05-13T18:25:51+00:00

I have some experience in developing business logic and database logic and primarily work

  • 0

I have some experience in developing business logic and database logic and primarily work with C#. Now I would like to build my first data-driven presentation-tier in ASP.NET. I was just wondering how I should fill my DataGrids with data.

I have IList – Collections of business entities such as “Customer” which I retrieve from my BLL. It is easy to bind the whole collection to a control, but that means, that all public properties of my business entities are shown as columns. I cannot decide which properties to show, how they should be ordered and how they should be displayed (e.g. DateTime as ShortTimeString).

Could you please tell me where to find best-practise examples or tell me how you solved this problem?

Best regards,
Daniel Lang

  • 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-13T18:25:51+00:00Added an answer on May 13, 2026 at 6:25 pm

    Whenever I bind to grid I make sure to always have the property AutoGenerateColumns = false. I then explicitly define the columns and templates I use.

    I think this is best practice since the next coder might come along and add something to your object and not realize it is going to automatically be added to everywhere you bind it to a grid. It also makes you consider each field to see if they really need to see it as is or with some type of template.

    The AutoGenerateColumns property is one of those features that looks really cool in demos but in the real world is not that useful and can lead to unexpected issues.

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

Sidebar

Related Questions

I have some experience of developing in Flex/Actionscript using Cairngorm framework. At that time
I would like to start programming for symbianOS and have some starter questions.I am
I have some experience making multiplayer turn-based games using sockets, but I've never attempted
I'm new to NAnt but have some experience with Ant and CruiseControl. What I
I am working on a rails application (I have some experience with rails). But,
I am a web-developer working in PHP. I have some limited experience with using
We have some input data that sometimes appears with &nbsp characters on the end.
I have some classes layed out like this class A { public virtual void
When developing an ERP-like software or any other complex business system, what resources do
Hey everyone. I have a fair amount of experience developing iOS apps, but nothing

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.