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

Access using .Net Datagrid

I'm a long time developer in Access. Noticing the "Why do IT guys hate
MS Access?" thread made me think of my recent experiences in
experimenting with VB .Net, and specifically, the Datagrid control.

I have an app that has a very large table, about 700,000 records.
Access handles this table with ease. I can load the entire table in a
datasheet in seconds, with little additional impact on system memory.
I can lookup, sort and filter on any indexed field almost instantly.

If I try to load in the same table in a Datagrid in VB .Net, the thing
chugs along for well over a minute, while task manager shows the app
consuming hundreds of megs of memory. Doing a sort on a column is
almost as slow as the load.

I'm just experimenting here...by no means am I proficient in .Net. But
this seems ridiculous.

Are there tricks to using the Datagrid? I'm just doing a drag and drop
of the table onto a form (most recent effort was in VB 2005 Express,
Beta 2). Are there other ways to handle data more efficiently in
.Net?

How about reports? VB .Net 2002 uses a hacked down version of Crystal.
Yuck..never could understand why Microsoft didn't incorporate the
great Access report writer in their VB products.

Any opinions or comments are welcomed.

Thanks,

John

Nov 13 '05 #1
6 2178
On Sat, 01 Oct 2005 02:11:27 -0500,
jf***@ezdbr-dot-com.no-spam.invalid (StepUP) wrote:

So you're saying that Access can do a very bad thing efficiently while
the datagrid cannot. I don't see the harm in that.

-Tom.

I'm a long time developer in Access. Noticing the "Why do IT guys hate
MS Access?" thread made me think of my recent experiences in
experimenting with VB .Net, and specifically, the Datagrid control.

I have an app that has a very large table, about 700,000 records.
Access handles this table with ease. I can load the entire table in a
datasheet in seconds, with little additional impact on system memory.
I can lookup, sort and filter on any indexed field almost instantly.

If I try to load in the same table in a Datagrid in VB .Net, the thing
chugs along for well over a minute, while task manager shows the app
consuming hundreds of megs of memory. Doing a sort on a column is
almost as slow as the load.

I'm just experimenting here...by no means am I proficient in .Net. But
this seems ridiculous.

Are there tricks to using the Datagrid? I'm just doing a drag and drop
of the table onto a form (most recent effort was in VB 2005 Express,
Beta 2). Are there other ways to handle data more efficiently in
.Net?

How about reports? VB .Net 2002 uses a hacked down version of Crystal.
Yuck..never could understand why Microsoft didn't incorporate the
great Access report writer in their VB products.

Any opinions or comments are welcomed.

Thanks,

John


Nov 13 '05 #2
Tom van Stiphout <no*************@cox.net> wrote in
news:1h********************************@4ax.com:
So you're saying that Access can do a very bad thing efficiently
while the datagrid cannot. I don't see the harm in that.


While that is true, the point is that the penalty for doing the bad
thing in Access is nil, from a resources standpoint. As that was one
of the points of criticism that comes from IT, I think the
comparison is valid. There are lots of programmers out there who do
stupid things, and it seems like in Access the penalty for that is
substantially less than in VB.

That's either a good thing or a bad thing from the standpoint of
good programming practices, but it's clearly a point of superiority
for Access vs. VB in terms of use of system resources.

And let me say that my experieince with VB programmers who've
attempted database apps shows me that many of them have absolutely
no business writing db apps, as they don't understand the basics of
databases in the first place, and end up creating hideous schemas
and then the writing awful code to work with them.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #3
> Tom van Stiphoutwrote:
On Sat, 01 Oct 2005 02:11:27 -0500,
jf***@ezdbr-dot-com.no-spam.invalid (StepUP) wrote:

So you're saying that Access can do a very bad thing efficiently while the datagrid cannot. I don't see the harm in that.

-Tom


What very bad thing?? Being able to display a large volume of records
quickly?

Maybe this was "bad" in the days of 1MB ethernet, but on today's
networks...I wouldn't call it bad...I call it NICE! :D

Nov 13 '05 #4

StepUP wrote:
Tom van Stiphoutwrote:

On Sat, 01 Oct 2005 02:11:27 -0500,
jf***@ezdbr-dot-com.no-spam.invalid (StepUP) wrote:

So you're saying that Access can do a very bad thing efficiently

while
the datagrid cannot. I don't see the harm in that.

-Tom


What very bad thing?? Being able to display a large volume of records
quickly?

Maybe this was "bad" in the days of 1MB ethernet, but on today's
networks...I wouldn't call it bad...I call it NICE! :D


I guess Tom, like I, wanted to know under what circumstances displaying
700,000 records could be desirable? I would say there's a difference
between users having access to the records, and the system displaying
them by default.

Edward

Nov 13 '05 #5
On 3 Oct 2005 08:06:36 -0700, te********@hotmail.com wrote:

I guess Tom, like I, wanted to know under what circumstances displaying
700,000 records could be desirable? I would say there's a difference
between users having access to the records, and the system displaying
them by default.

Edward


This is a misconception unless your screen has 700,000 lines.
The idea of a cursor which you can scroll at will is a lot better than
what we have to put up with on Google, for example, and client server
UIs are often not a lot better.

Nov 13 '05 #6
> I guess Tom, like I, wanted to know under what circumstances
displaying
700,000 records could be desirable? I would say there's a difference between users having access to the records, and the system displaying them by default.

Edward


Well, there really is not much practical use for it, I was just making
a point about speed and efficiency in Access vs .Net.

If the Datgrid displayed the records in, say 10 seconds to Access' 2
seconds, I wouldn't be too concerned. But to take over 60 seconds,
and use 200 megs of memory..that's troubling.

JF

Nov 13 '05 #7

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

Similar topics

2
by: Paul Daly (MCP) | last post by:
How do you access the value of a cell in a Windows form datagrid? I know this is how you would do it using an ASP.NET datagrid: DataGrid1.Items.Cells.Text However, "Items" is not available in...
0
by: bill yeager | last post by:
I have a datalist displaying parent information and a datagrid presenting child information. The data is being rendered just fine. The datagrid has template columns on it that I cannot gain access...
1
by: bill yeager | last post by:
I did some more debugging and found the following: 1) I placed the following code in the button event just to see if I could cycle thru the datagrid control collection: <code> Dim strhello As...
0
by: Qajussi | last post by:
Hi! I am trying to create data entry forms like MS access forms using asp.net. I am talking about a form like MS access forms which let you enter a new record, edit, navigate to previous and next...
6
by: HS1 | last post by:
Hello I have a table in Access Database. This table has a AutoNumber field. I use a DataGrid to show that table When I insert a new record in for this table using a DataGrid, there is a...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
0
by: upendra | last post by:
Hi, I am B.V.Ramesh Babu.I am working as software programmer using .net.We are using asp.net1.1 with C#.net as coding.I hope that i will get the required support from you. Here is my requirement....
4
by: _MC_ | last post by:
Hi, I'm unable to access values in my Datagrid. Datagrid thinks it hase only 1 Cell. So here it is: The Datagrid is binded in PageLoad, AutoGenerateColumns is false, Columns are added on...
1
by: psyvanz | last post by:
i have created 2 tables name table1 and table2 with the same fieldnames in subjectnumber(sub-0001), subjectname(english1) but in my table2 i added studentnumber(s-0001) and studentname(paul) im...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.