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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:43:18+00:00 2026-05-20T06:43:18+00:00

OK, so I have an SQLS db that I want to query using some

  • 0

OK, so I have an SQLS db that I want to query using some JOIN commands. I know how to do that, but here’s the bit I don’t quite know how to do yet:

How do I bind the results of said query to a single typed list so that changes to the list can be easily written to the database?

Reason I want to do this is that I’m using a control (Phillip Piper’s ObjectListView’s TreeListView) that binds itself to a list, so I need to get data from that control back into the DB in a sensible manner that ideally doesn’t involve tons of boilerplate code.

The idea being that the user can play with the values in the Treelistview (which automatically updates the list, this bit works quite happily), then the user can hit save and then something (a dataadapter I’m guessing? I’m new to C# and SQLS and still fuzzy on the whole binding thing) updates just the changed values in the relevant tables.

Sorry if this seems like basic stuff, but putting ‘bind query results to a typed list’ into google returns loads of stuff that’s irrelevant, or stuff that I’m not advanced enough to understand yet. I think I need this in pure newbie layman’s terms 😛

  • 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-20T06:43:19+00:00Added an answer on May 20, 2026 at 6:43 am

    In the end I canned the joined DataTable idea and just read the data straight into a List of my objects with a DataReader. So this whole question is now pretty redundant for me. Hopefully someone else will find it useful.

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

Sidebar

Related Questions

We have a scheduled job in a SQLS 2008R2 DB that queries a legacy
I've been working on optimizing a query and have ran into a situation that's
Have some validating problems which seem to appear only when using the Auth component.
I have some tables which all have a field named created_at , that's a
I have an application to generate dynamic reports using dynamic SQLs. The results of
I have a data-analysis question, that I could easily solve with some T-SQL or
I have a basic query that goes from 6 seconds to 1 second just
I have few scripts loaded by cron quite often. Right now I don't store
Have just started using Google Chrome , and noticed in parts of our site,
Have just started using Visual Studio Professional's built-in unit testing features, which as I

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.