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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:23:24+00:00 2026-05-13T15:23:24+00:00

Im using c# 2008 winforms. Ive found it very frustrating trying to find the

  • 0

Im using c# 2008 winforms.

Ive found it very frustrating trying to find the best practice way to use datasets and datagridviews in winforms apps in general to achieve the results i want.

Basically i want to (and this is the generic methodology i want to use in all my applications)
1. populate a dataset from a sql table
2. populate a datagridview from the dataset
3. some columns in the datagridview will be calculated results from the dataset fields
4. edit data in the datagridview and have the edits synced back to the dataset source.
5. edits in the datagridview are only updated to the database source via stored procedures on the database, i never use the sqlAdaptor.update method
6.I want a bottom footer of summed column totals in the datagridview
7.I want a column to show all row summed totals

I can do all these individual things but am very frustrated to find my code ends up all over the place and different on wether i want all the above or just some of them.

For example i could sync information between the datagridview and the dataset, by binding the dataset to the datagridview but then i cant have custom columns and custom rows in the datagridview etc etc.

Its all very frustrating and i was hoping to get pointed to some best practice methods for achieving optimum results with the above.
Any advice appreciated.

Thanks in advance

  • 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-13T15:23:24+00:00Added an answer on May 13, 2026 at 3:23 pm

    "I can do all these individual things
    but am very frustrated to find my code
    ends up all over the place and
    different on wether i want all the
    above or just some of them."

    What I can get is, you need to organise your aaplication into layers or Tiers. You can place common functionality into a layer and assigh responsibility. Following is a Pattrn which Might give you an idea

    • Presentation

      WebForms, Html Pages etc

    • Business Logic Layer (BLL)

      Business Objects, Business Rules Objects

    • Data Access Layer (DAL)

      Repository Objects (Responsible for Access your Datasets Stuff),
      Model (All you Data-sets / Table-Adapters etc.)

    "i cant have custom columns and custom
    rows in the datagridview etc etc."

    If One or more of your datagridviews need some data from TableAdapter (Model(DAL)), but Customised columns or rows, your BLL layer should server the purpose here. It should somewhat be as follows:

    AccountGridViewClient (Presentation) –> AccountsManager(BLL)
    –> AccountsRepository(DAL) –>AccountsTableAapter — >DB

    AccountGridViewAdmin (Presentation) –> AccountsManager(BLL)
    –> AccountsRepository(DAL) –>AccountsTableAapter — >DB

    Have look at this thread as well.

    Hope it helps

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

Sidebar

Related Questions

We are developing a multilingual Winforms application using visual studio 2008. I am trying
Using C# WinForms in VS 2008 (.Net 3.5) I am trying to bind a
Using: Microsoft SQL Server 2008 Microsoft Visual Studio 2010 C# .NET 4.0 WinForms Ok
I developed a WinForms application (using C#, with visual studio 2008) and I have
I am using WinForms & C# to access a SQL Server 2008 on my
I am using Visual Studio 2008 for a C# WinForms application and I am
I am developing a Client-Server application using C# .NET Winforms with SQL Server 2008.
I'm using Visual Studio 2008, developing a winforms app. I have my database connection
I am using Visual Studio 2008. I have created a Winforms application, and I
I have a WinForms application built using Visual Studio 2008. I added a Setup

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.