473,775 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[Data Binding] slow ?

I got a tables which got 10,000 records.
user will input the invoice no as key.
my strConnection = "select * from invoice_Table where invno ='" &
(Me.txtInvoiceN o.Text) &"' "
in my form, there are over 20 textbox.
If i use databinding to bind each textbox. will it become slow ???
if i move the position, will it slow ??

Thanks
Nov 20 '05 #1
3 1492
10,000 is a lot of data, but it depends on a lot of things. I try not to
push about 5k as a rule, but I've done about 20k and not had any performance
issues on P4's all of which had 256 mb.
"Agnes" <ag***@dynamict ech.com.hk> wrote in message
news:O8******** ******@TK2MSFTN GP11.phx.gbl...
I got a tables which got 10,000 records.
user will input the invoice no as key.
my strConnection = "select * from invoice_Table where invno ='" &
(Me.txtInvoiceN o.Text) &"' "
in my form, there are over 20 textbox.
If i use databinding to bind each textbox. will it become slow ???
if i move the position, will it slow ??

Thanks

Nov 20 '05 #2
Hi Agnes,
I got a tables which got 10,000 records.
user will input the invoice no as key.
my strConnection = "select * from invoice_Table where invno ='" &
(Me.txtInvoiceN o.Text) &"' "


Do you have invoices with 10000 rows?

By the way, you better can use a command.paramet er to fill that variable in
the selectstring

Cor
Nov 20 '05 #3
If your using a dataset (especially a typed one) use the BeginLoadData
method.

i.e.

Dim myStrongDataset 1 as new myStrongDataSet 1

myStrongDataset 1.MyTable.Begin LoadData()
myDataAdapter.F ill(myStrongDat aset.MyTable)
myStrongDataset 1.myTable.EndLo adData()

this turns off notifications which can cause performance problem.s

You can also use the currency manager to assist this with

dim cm as CurrencyManager

cm = BindingContext( myStrongDataset 1, "MyTable")

cm.SuspendBindi ng

myStrongDataset 1.MyTable.Begin LoadData()
myDataAdapter.F ill(myStrongDat aset.MyTable)
myStrongDataset 1.myTable.EndLo adData()

cm.ResumeBindin g

HTH,
CJ

"Agnes" <ag***@dynamict ech.com.hk> wrote in message
news:O8******** ******@TK2MSFTN GP11.phx.gbl...
I got a tables which got 10,000 records.
user will input the invoice no as key.
my strConnection = "select * from invoice_Table where invno ='" &
(Me.txtInvoiceN o.Text) &"' "
in my form, there are over 20 textbox.
If i use databinding to bind each textbox. will it become slow ???
if i move the position, will it slow ??

Thanks

Nov 20 '05 #4

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

Similar topics

2
2045
by: kk | last post by:
Have 2 problems, any help is appreciated. Tab with Grids -------------- BL - fetching data from DB ( 5 secs - 10 rows) Grid Laod - 20 secs Grid Paint on tab change - 20 secs Problem: The data fetch only takes 5 secs, why does paint and load take 40 secs in total.
0
2349
by: Ann Morris | last post by:
INTRODUCTION One of the most powerful aspects of .NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a visual representation of data. Two types of data binding are available for Windows Forms: Simple Data Binding and Complex Data Binding. Simple data binding allows you to bind one data element to a control. In many situations you want to display...
16
3039
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For example dsParts.xsd and including that in the data tier. I then will create a class that looks like this Public Class CPart Inherits dsParts
5
2447
by: amanatio | last post by:
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... ...
8
4258
by: aualias | last post by:
I am rewriting a web page that was previously done with ColdFusion. It has a DataGrid and one column in the DataGrid is a dropdown list which is the same for all rows. The ItemDataBound code looks like this... // _viewDestinations is created once and stored in the ViewState
14
14659
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control so I get the ObjectDataSource. No problem ..... ObjectDataSource src = .... //is ok i have it
7
10069
by: John J. Hughes II | last post by:
I have a DataGridView with a TextBoxColumn. I setting the data source to a List<stringvalue in a static class. The list is filled from a background thread. So far all is fine and it works great, at least on my system. The reason I am doing this is some customers are pulling from VPN connections which are slow. This allows the list of rows in the data grid to appear a little quicker while the list which are not used as soon load in...
9
4026
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New DataTable("SliceInfo") Dim tblSliceRatings As New DataTable("SliceRatings") '.... All the adding datacolumns, datarows, etc. goes here.. DatasetInit.Tables.Add(tblSliceInfo)
10
5849
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi, Problem: How can I databind (or put) a SqlServer query's row return of 115,000 items into a ComboBox quickly? Not much longer than a matter of seconds, that is... Scenario: I am rebuilding my company's Access 97 VBA database app. It pulls 115,000 items (of account names) from SqlServer and the data is bound to a single Access 97 ComboBox control. My C# version needs to work exactly like this one. Our executive employees want...
0
9622
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10270
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10109
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8940
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7464
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5361
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5486
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4018
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2854
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.