C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2720
Number of posts: 5746

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Keyed Table data structure? Posted by komakala on 12 Sept 2006 at 8:35 PM
This message was edited by komakala at 2006-9-12 20:43:9

I'm trying to figure out which data structure would be the best for me to use. I'm trying to make a table where each row in the first column has a unique key. I know stacks won't work for my purposes. But I'm not sure if I'll need to use a keyed linked list, or a queue of sorts, or possibly some other data structure that I haven't remembered yet.

The user doesn't need to see the structure, it should be in the background and each cell holds a single character. I'm using VS 2005, any suggestions would be helpful.

- komakala

Edit: Added more details to my question.
Report
Re: Keyed Table data structure? Posted by mumpiz on 13 Sept 2006 at 3:39 AM
: This message was edited by komakala at 2006-9-12 20:43:9

: I'm trying to figure out which data structure would be the best for me to use. I'm trying to make a table where each row in the first column has a unique key. I know stacks won't work for my purposes. But I'm not sure if I'll need to use a keyed linked list, or a queue of sorts, or possibly some other data structure that I haven't remembered yet.
:
: The user doesn't need to see the structure, it should be in the background and each cell holds a single character. I'm using VS 2005, any suggestions would be helpful.
:
: - komakala
:
: Edit: Added more details to my question.
:
Hi,

have You thought about DataSets, created with xsd in VS, they also work without database connection and are easily designed, using keys, constraints and the lot usually used in ordinary databases.

greets c.
Report
Re: Keyed Table data structure? Posted by komakala on 13 Sept 2006 at 7:37 AM
: Hi,
:
: have You thought about DataSets, created with xsd in VS, they also work without database connection and are easily designed, using keys, constraints and the lot usually used in ordinary databases.
:
: greets c.
:
Thanks for the suggestion. To be honest I don't know anything really about DataSets. I need to make a multi-demensional table, and I was poking around a little with datasets but I only could figure out how to make columns. And I'll probably eventually need a table sized at least 20x20.

- Komakala
Report
Re: Keyed Table data structure? Posted by mumpiz on 14 Sept 2006 at 2:18 AM
: Thanks for the suggestion. To be honest I don't know anything really about DataSets. I need to make a multi-demensional table, and I was poking around a little with datasets but I only could figure out how to make columns. And I'll probably eventually need a table sized at least 20x20.
:
: - Komakala
:

Hi, multi-dimensional, 20x20 is two dimensions only, 20 rows with 20 columns!!!

DataSets do exactly that:

this is code automatically designed by VS 2003 just by using Xsd

public TimberRow AddTimberRow(
long Pos,
string BtName,
long Cnt,
System.Double Length,
System.Double Width,
System.Double Height,
System.Double Lfm,
System.Double Qm,
System.Double Vol,
string Material, .............
a timberRow contains columns, and they are like the rest of the table created visually by adding attributes to your table.
The above sample is part of a datatable with about 20 columns, but of course the amount of rows can be any number, depending on how much different data you need to store.

greets c.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.