473,385 Members | 2,210 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,385 software developers and data experts.

bindingcontext or datarow ?

My form got over 30 textbox, some textbook suggest to use Bindingcontext
method. to addnew/update.
However, some other box didn't mention 'bindingcontext', it gives me a
simple sample by using datarow.

so, which ray I should use ??
Thanks
Nov 20 '05 #1
4 1047
Hi Agnes,

If you are able to use the binding, than use it, it saves you a lot of
coding while it makes your program is very consistent.

Cor
Nov 20 '05 #2
Thanks for your advice,
However, i didn't know too much about adaptor. the text book always give me
the samples is.
Dim da = new sqldataadatpr("select xxxxxx)
ds = new dataset("table")
da.fill(ds)
.......
da.update()
It seems I needt to "SELECT everything first" , if my tables got over
10,000. will it too slow ???
My aim is so simple that "insert a new record".
Please help ~~
"Cor Ligthert" <no**********@planet.nl> ¦b¶l¥ó
news:uP**************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
HI Agnes,

You should never read 10.000 records in one time.

There are a 10.000 or more scenarios, one of them create a select distinct
(gives you only the main keys) with what you fill a combobox, after the
select of the proper key from the combobox you do a

Select ..... where X = @comboboxparameter

And that is the data to proces, in my opinion will your user be much hapier with such a scenario than scrolling throuhg 10.000 rows

I hope this helps?

Cor
Cor
However, or,I should describe my problem in detail.
myHeadetables got over 10,000 records, and over a hundred fields to be
filled in (everytime)
Case a) If I use dataadaptor, i need to process sqlcommand."select
*....from" first, and fill in my dataset. then i can process datarow.new() or . binding..addnew()..etc.
Case b) I also can use insert command to insert the data as the user press "ADD" & "SAVE" button.
It seems that Case A) will get much slower if the user only want to input the new record but not search anything else.
I prefer case b) .Any expertise here can give me some hints ??


Nov 20 '05 #3
However, or,I should describe my problem in detail.
myHeadetables got over 10,000 records, and over a hundred fields to be
filled in (everytime)
Case a) If I use dataadaptor, i need to process sqlcommand."select
*....from" first, and fill in my dataset. then i can process datarow.new()
or . binding..addnew()..etc.
Case b) I also can use insert command to insert the data as the user press
"ADD" & "SAVE" button.
It seems that Case A) will get much slower if the user only want to input
the new record but not search anything else.
I prefer case b) .Any expertise here can give me some hints ??

"Cor Ligthert" <no**********@planet.nl> ¦b¶l¥ó
news:ud**************@TK2MSFTNGP09.phx.gbl ¤¤¼¶¼g...
Hi Agnes,

If you are able to use the binding, than use it, it saves you a lot of
coding while it makes your program is very consistent.

Cor

Nov 20 '05 #4
HI Agnes,

You should never read 10.000 records in one time.

There are a 10.000 or more scenarios, one of them create a select distinct
(gives you only the main keys) with what you fill a combobox, after the
select of the proper key from the combobox you do a

Select ..... where X = @comboboxparameter

And that is the data to proces, in my opinion will your user be much hapier
with such a scenario than scrolling throuhg 10.000 rows

I hope this helps?

Cor
Cor
However, or,I should describe my problem in detail.
myHeadetables got over 10,000 records, and over a hundred fields to be
filled in (everytime)
Case a) If I use dataadaptor, i need to process sqlcommand."select
*....from" first, and fill in my dataset. then i can process datarow.new()
or . binding..addnew()..etc.
Case b) I also can use insert command to insert the data as the user press
"ADD" & "SAVE" button.
It seems that Case A) will get much slower if the user only want to input
the new record but not search anything else.
I prefer case b) .Any expertise here can give me some hints ??

Nov 20 '05 #5

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

Similar topics

0
by: zee | last post by:
Hi, Could anybody please tell me why my web application refuses when I use BindingContext. I am selecting from a database and if (this.BindingContext.Count==0)...
0
by: Peter | last post by:
Hi, I'm developing a program in MDI style I've got 2 froms MDIForm (parent form) Form2 (child form with dataGrid1 and myDataSet)
0
by: Jose_Csharp | last post by:
Hi group. I´m trying to add new records to a sql server data table with: BindingContext.AddNew(); This sentence clear all my textboxes and not add any record to the database, the I use the next...
1
by: D. Yates | last post by:
Hi, I retrieved the employee table from the Pubs database into a single dataset called, dataSet12. I dropped two textbox controls and a datagrid control onto the same form and bound the...
0
by: Nathan Carroll | last post by:
Attempting to eliminate flicker showing (form) and hiding seems to have no effect as I have it below. if I move the lines: Me.Show() Me.ShowInTaskbar = True f.Close() to the end of the...
1
by: Edwin | last post by:
Hi, I created a dataform with the data form wizard which created some textboxes and 1 checkbox. When I add a row (see section "Add Row" for code) the newly added is not accessible. A label...
0
by: Donald | last post by:
Mostly, I get the currencymanager from the form.bindingcontext property. but I found that I can aslo get the same currencymanager from a textbox.bindingcontext, even though this textbox does not...
0
by: nina98765 | last post by:
Hi all I have a data-bound Windows form bound to a strongly-typed dataset. Upon opening the form, I would like to Find a specific record based on a parameter I've passed to the form, and display...
6
by: MeowCow | last post by:
I have created a UserControl that encapsulates a third party data grid. My goal was to create my own DataSource and DataMember properties that forward the binding to the third party grid, then use...
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:
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...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.