473,386 Members | 1,795 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,386 software developers and data experts.

Alternative to Dataset??

Hello everyone

I have two select statements, one pulling out the articles and another
select pulling out the articleIDs and companyIDs.

I use these two select statements to populate two datatables in a
dataset and use the RowFilter to populate a datagrid.

What I would prefer to use is a datareader and populate two arraylists,
but doesn't that mean when I come to populate the datagrid I have to
loop round the second arraylist and compare articleIDs and chose the
relevant companyIDs?

Hope this makes sense

Thanks

Angela

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
1 1777
1. The simplest thing to do is to make 1 SQL command to return all the
results as a single table.

2. Barring that, I use custom Business Object classes (which are filled by
datareaders) instead of datasets.
I use Rocky Lhotka's CSLA framework. Very nice.

http://www.lhotka.net/ArticleIndex.a...ea=CSLA%20.NET

--
Joe Fallon

"angela" <an****@anon.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hello everyone

I have two select statements, one pulling out the articles and another
select pulling out the articleIDs and companyIDs.

I use these two select statements to populate two datatables in a
dataset and use the RowFilter to populate a datagrid.

What I would prefer to use is a datareader and populate two arraylists,
but doesn't that mean when I come to populate the datagrid I have to
loop round the second arraylist and compare articleIDs and chose the
relevant companyIDs?

Hope this makes sense

Thanks

Angela

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #2

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

Similar topics

13
by: Drochom | last post by:
Hello, I have a huge problem with loading very simple structure into memory it is a list of tuples, it has 6MB and consists of 100000 elements >import cPickle >plik = open("mealy","r")...
99
by: Paul McGuire | last post by:
There are a number of messages on the python-dev mail list that indicate that Guido is looking for some concensus to come from this list as to what *one* alternative syntax for decorators we would...
3
by: Al | last post by:
Using the reader object I'm not having a problem retrieving stored procedure return values, but I'm having trouble getting at the actual data coming back in the row results. My first impulse would...
6
by: Doug | last post by:
I have data that looks something like this when returned from a stored procedure (3 columns, X rows): Key1 Name1 Value1 Key1 Name2 Value2 Key1 Name3 Value3 Key1 Name4 ...
3
by: Sanjay Pais | last post by:
I know that string/char enum is not possible in c# (.NET2.0) I need to create the equivalent of this: public enum HOW_GOOD { AWESOME = "A", GREAT= "G", NOT_TOO_BAD = "N", TERRIBLE="T" }
3
by: Amar | last post by:
Hi, I am part of a team building a stock exchange software - Order Management system'. The current system that we have supports 200,000 orders per day. All of this data is needed in memory.Ofc...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
Greetings, I have to load 30,000 unique names into a combox. Filling a dataTable takes only a few milliseconds. But populating the combobox and displaying the list takes several seconds - way...
0
by: sachintandon | last post by:
Hello all, Thanks in advance for your help I have a problem in sending emails, my requirement is to send multipart alternative emails with attachments, I'm able to send text with attachments or...
6
by: Noble | last post by:
I am getting ready to write a shareware app in .Net using C# (actually convert a VB shareware). I currently use a third party dll for the data management. It is called the Tsunami Record Manager. I...
2
by: RP | last post by:
I have three columns in a Grid (Third-Party), which is populated through code without using DB DataSource. The columns are: Date, Amount and Type. At present I created a DataSet to fill the entire...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.