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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:08:27+00:00 2026-05-16T09:08:27+00:00

I would like to make a (very lightweight) 2-way binding datastore. Values must be

  • 0

I would like to make a (very lightweight) 2-way binding datastore. Values must be accessed via names. I was thinking of using 2 arrays:

public class MyBindingDatastore{
    public string[] _names = new string[]{"Field1", "Field2", "Field3"}
    public object[] _values = new object[]{ DateTime.Now, "MyValue", 1}
}

First array is used to store field names(always 1 row). Second array( can be also 2D if more than 1 record) represent value matrix.
Using GUI widget(Resco detailview or any that support 2-way databinding), I would like to specify:

MyControl.DataMember = "Field1";
MyControl.DataSource = new MyBindingDatastore();

Result of databinding should be properly displayed value from the value array. After a value inside GUI widget is changed, a change must occour in a datastore(value array) too.

Any idea on how to implement that? Or, is it better to use more bloated DataTable class to mimic datatable binding (I believe that DataTable has a lot overhead against array)?

  • 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-16T09:08:27+00:00Added an answer on May 16, 2026 at 9:08 am

    If you’re wanting to use DataBinding you should probably stick with the DataTable. Otherwise you will have to implement your own databinding anyway. If memory size is your concern, look for ways to minimize the amount of data loaded to memory at one time.

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

Sidebar

Related Questions

I think I would like to see/make a very simple web based program using
I would like to make a plot with ggplot that looks very close to
I would like make a script using PHP (probably need JS) to send POST
I'm very new to android development. I would like to make a android app
I would like to make vim my C++ editor. I have very little experience
I'm using Django 1.2. I would like to make a model with 3 fields,
the idea: I'd like to make a very lightweight alternative to Windows Explorer for
I would like to make a very dense dl-layout. The dt is in the
I would really like to make this question very clear for all of us.
I would like to make a reservations formula but I have very low knowledge

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.