PC Review


Reply
Thread Tools Rate Thread

[Data Binding] slow ?

 
 
Agnes
Guest
Posts: n/a
 
      13th May 2004
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.txtInvoiceNo.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


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      13th May 2004
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.txtInvoiceNo.Text) &"' "


Do you have invoices with 10000 rows?

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

Cor


 
Reply With Quote
 
William Ryan eMVP
Guest
Posts: n/a
 
      13th May 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.txtInvoiceNo.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
>
>



 
Reply With Quote
 
CJ Taylor
Guest
Posts: n/a
 
      13th May 2004
If your using a dataset (especially a typed one) use the BeginLoadData
method.

i.e.

Dim myStrongDataset1 as new myStrongDataSet1

myStrongDataset1.MyTable.BeginLoadData()
myDataAdapter.Fill(myStrongDataset.MyTable)
myStrongDataset1.myTable.EndLoadData()

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(myStrongDataset1, "MyTable")

cm.SuspendBinding

myStrongDataset1.MyTable.BeginLoadData()
myDataAdapter.Fill(myStrongDataset.MyTable)
myStrongDataset1.myTable.EndLoadData()

cm.ResumeBinding

HTH,
CJ

"Agnes" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.txtInvoiceNo.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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
100K item data binding: Is asynchronous data binding possible? R Reyes Microsoft C# .NET 14 5th Feb 2008 09:47 PM
Slow response binding to datagrid =?Utf-8?B?QW50?= Microsoft ADO .NET 2 13th Feb 2006 02:07 AM
ASP.NET data binding slow? aualias Microsoft ASP .NET 8 4th May 2005 05:31 PM
Re: Data Binding - using inline code vs. functions vs. straight binding Alvin Bruney [MVP] Microsoft ASP .NET 0 9th Mar 2004 01:24 PM
Is Data Binding for Drop Down box slow? Raghavendra Narayana Microsoft ADO .NET 2 17th Sep 2003 06:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:16 AM.