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

Huge form with data binding

I have a huge form with many data bound controls on it and 34 tables in
database (and of course 34 data adapters and 34 datasets). The form is
extremely slow to design (huge delay when I go to code from design mode
or vice versa) and to show.

I didn't design the form but I WILL redisgn it from scratch. What would
you propose me to do? The form now haw a tab control with 7 tabs and
about 600 text boxes that are bounded to 34 datasets...

Having one dataset with 34 tables instead of 34 datasets is faster? Is
there any catch using data bind in .NET? What is the best practice for
data binding? Any example form with data bind (addnew, load data) ...

Thanks

Nov 16 '05 #1
5 2423
amanatio,

Having one dataset might be easier, but you would be incuring a good
amount of overhead if you arent using all of the tables. The data binding
story doesn't change, you just have to make sure you indicate the table you
want to data bind to when performing the binding (which shouldn't change
things at all).

Other than that, most everything will remain the same (the number of
data adapters, primarily).

You might want to consider whether or not the UI is really a good idea,
as it seems pretty crowded and a lot to go through. Maybe there is a way to
make the operation easier which will in turn allow you to break down the
components and split some things apart?

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"amanatio" <am******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I have a huge form with many data bound controls on it and 34 tables in
database (and of course 34 data adapters and 34 datasets). The form is
extremely slow to design (huge delay when I go to code from design mode
or vice versa) and to show.

I didn't design the form but I WILL redisgn it from scratch. What would
you propose me to do? The form now haw a tab control with 7 tabs and
about 600 text boxes that are bounded to 34 datasets...

Having one dataset with 34 tables instead of 34 datasets is faster? Is
there any catch using data bind in .NET? What is the best practice for
data binding? Any example form with data bind (addnew, load data) ...

Thanks

Nov 16 '05 #2
Thanks Nicholas,

the form is a 4 pages tax-document. The requirements are that user can
fill all the data on form (we have scanned the document and set the
pictures as background on the form) and make calculations on the from.
So we have to get all document data into datasets for making the
calculations.... Should we use a component class to store all the data
adapters? Perhaps this would make design time faster ...

Nov 16 '05 #3
amanatio,

Well, I don't know that placing all the data adapters in another class
is going to help. In the end, it's a good amount of data adapters to be
carrying around.

Separating it out into another component will help with maintinence, at
the least, and I would recommend it. However, in the end, the sheer size of
everything is what is going to give you problems, IMO.

The only other suggestion I can make is to make sure all of your
commands are stored procedures, that way, you can move some of the adapter
code (you won't have to actually have SQL embedded in your code) out of the
app itself.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"amanatio" <am******@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Thanks Nicholas,

the form is a 4 pages tax-document. The requirements are that user can
fill all the data on form (we have scanned the document and set the
pictures as background on the form) and make calculations on the from.
So we have to get all document data into datasets for making the
calculations.... Should we use a component class to store all the data
adapters? Perhaps this would make design time faster ...

Nov 16 '05 #4
I would really think about my architecture. Since the fom refers to many
tables, can it be split up into multiple forms and use a "wizard" style
layout? The users could be overwhelmed with the sheer amount of information.

I assume that you using a Windows form ? I would also think about building a
"lightweight" data class instead of the dataset to hold my data. Instead of
using data adaptors, you could use Data Readers to populate your data class
and use stored procedures to update your database. There will at least give
you some performance advantages.

Also group the information logically, based on the data the user needs, and
you could span a data class across multiple tables. Storing your data in a
logical data class instead of joing several datasets will save you memory.

Another way you could speed up data access is by setting the right indexes
on your tables but that, of course will be particular to your situation.

Hope that helps
Shane Sukul

Architect
|MCSD||MCAD|
Ashlen Consulting Services
"amanatio" wrote:
I have a huge form with many data bound controls on it and 34 tables in
database (and of course 34 data adapters and 34 datasets). The form is
extremely slow to design (huge delay when I go to code from design mode
or vice versa) and to show.

I didn't design the form but I WILL redisgn it from scratch. What would
you propose me to do? The form now haw a tab control with 7 tabs and
about 600 text boxes that are bounded to 34 datasets...

Having one dataset with 34 tables instead of 34 datasets is faster? Is
there any catch using data bind in .NET? What is the best practice for
data binding? Any example form with data bind (addnew, load data) ...

Thanks

Nov 16 '05 #5
Thanks everybody.

I think that redisigning the whole thing with 8 forms rather than 1
form with 8 tabs is top priority...

Nov 16 '05 #6

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

Similar topics

1
by: Marcin Floryan | last post by:
Hello! My question regards opening (and re-opening) Form and the Load event. I have a main form (frmMain) and I also have a data form (frmData). In the main form I have created: Private...
5
by: Jason Huang | last post by:
Hi, Is it possible to bind DataReader to a DataGrid in C# windows form? And how? And can we update data in a DataSet by using the DataReader? Thanks for help. Jason
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
21
by: Simon Verona | last post by:
Hope somebody can help! I want to automatically be able to add code to the initialize routine on a Windows form when I add a custom control that I've written to a form. Specifically, I'm trying...
2
by: Gary Shell | last post by:
Sorry for the crosspost, I initially posted this to the microsoft.public.dotnet.languages.vb.data group, but it never showed up there. (Is that newsgroup still active???) I have two datasets...
6
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox...
8
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a...
8
by: BD | last post by:
Moving from MS Access to .Net using C# languag. Problem trying to duplicate form with structure as follows: 1. Main form 'Work Order' displayed as textboxes 2. subform 'Customers' textboxes...
8
by: Randy | last post by:
I have a form with 36 text boxes on it. I have everything working for the user to make changes to existing records or to add new ones. When I come to the point of passing this data on to the data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
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...

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.