473,395 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Data structure for dynamic two-dimensional array

Hi,

is there a recommendable data structure for dynamic two-dimensional arrays?

The data structure should meet the following requirements:

- The number of rows is unknown on initialization.
- The same applies to the column count.
- The data type of the various columns is not known beforehand.
- It should be easy to bind the data items to data grids.
- Performance should be satisfactory even with thousands of rows.

Any ideas?

Thanks a lot,
P.

Nov 18 '05 #1
1 2195
You might find a DataTable will be easier to work with than, say, an
ArrayList of ArrayList objects, particularly if you want the columns
to have an associated data type.

Performance is relative to your application and environment, but if
the result is something you could cache for later requests, you'd be
much better off.

--
Scott
On Mon, 5 Jul 2004 13:50:01 -0700, "PontiMax"
<Po******@discussions.microsoft.com> wrote:
Hi,

is there a recommendable data structure for dynamic two-dimensional arrays?

The data structure should meet the following requirements:

- The number of rows is unknown on initialization.
- The same applies to the column count.
- The data type of the various columns is not known beforehand.
- It should be easy to bind the data items to data grids.
- Performance should be satisfactory even with thousands of rows.

Any ideas?

Thanks a lot,
P.


--
Scott
http://www.OdeToCode.com
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jack | last post by:
Hi, I am trying to test a sql statement in Access which gives me the error as stated in the heading. The sql statement is built as a part of asp login verification, where the userid and password...
5
by: John | last post by:
Hi: I'd like to implement a simple map, which is a 2-D plane with many points, e.g., 100. The points are not evenly distributed, i.e., some points may have two neighbor points; some may have 5...
0
by: CannonFodder | last post by:
Hi all, I am new to .NET but have a problem and see two possible directions i could go, but i do not know which one to take. Let me explain my problem, i have a webservice which recieves...
4
by: Thomas Paul Diffenbach | last post by:
Can anyone point me to an open source library of /statically allocated/ data structures? I'm writing some code that would benefit from trees, preferably self balancing, but on an embedded system...
7
by: Excluded_Middle | last post by:
Suppose I have a struct typdef struct foo { int age; char *name; }foo; now I made a list of foo using
5
by: Alfonso Morra | last post by:
Hi, I am writing a messaging library which will allow me to send a generic message structure with custom "payloads". In many cases, a message must store a non-linear data structure (i.e....
3
by: Kiran B. | last post by:
Hi, I am new to .net. I have two Data Structure Type ... Sturcture A and Structure B. Structure A Public Fname as String Public LastName as String Public City as String Public Zip as String...
38
by: Tom | last post by:
I need my data generating C program on computer #1 to export small amounts of data (one - 40 byte data structure) periodically (once per minute) to a C program on computer #2. I am considering...
13
by: farhaaad | last post by:
Dears, I have many feilds in my tables that are left blank for some records, If I make a sub table for it and and change those feilds to a lookup feilds so only those options are chosen which...
2
by: Alberto Poblacion | last post by:
"markus wolfgart" <markus.wolfgart@dlr.dewrote in message news:6nfpkqFjok6jU1@mid.dfncis.de... Nothing wrong with the struct, but with the code that accesses the constant. The "const" is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.