473,387 Members | 3,033 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,387 software developers and data experts.

How to add rows ?

Hey
I have very simple Access database. I added it as a source to my windows
app, and typed dataset was created. Let's say it's moviesDataSet. I added
bindingSource and used detailed view. So in my interface now is the
navigator on the top and add and delete button. I added also Save button,
because add button creates a new row but only in interface. What's the
easiest way to save it. I can set values in the moviesDataSet by adding new
row. But it forces me to read this values from interface manualy. Is there a
way to just have it read and set with no additional work ?
Jarod

May 10 '06 #1
3 1350
> Is there a way to just have it read and set with no additional work ?

Sure, pay someone to write the code for you. Of course, you'll have to work
to make the money to pay for it, so, perhaps I should have said "no."

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hey
I have very simple Access database. I added it as a source to my windows
app, and typed dataset was created. Let's say it's moviesDataSet. I added
bindingSource and used detailed view. So in my interface now is the
navigator on the top and add and delete button. I added also Save button,
because add button creates a new row but only in interface. What's the
easiest way to save it. I can set values in the moviesDataSet by adding
new row. But it forces me to read this values from interface manualy. Is
there a way to just have it read and set with no additional work ?
Jarod

May 10 '06 #2
>> Is there a way to just have it read and set with no additional work ?

Sure, pay someone to write the code for you. Of course, you'll have to
work to make the money to pay for it, so, perhaps I should have said "no."


You know what I meant ;) Because binding data in one way is done without
writing a line of code so I thought maybe there is a way to save data back
without too many lines of code ;) Or what is the simplest way to do it in
this case ?
Jarod

May 11 '06 #3
> You know what I meant ;) Because binding data in one way is done without
writing a line of code so I thought maybe there is a way to save data back
without too many lines of code ;) Or what is the simplest way to do it in
this case ?


There is a certain amount of code that Visual Studio will write for you.
This is for the purpose of productivity. It reduces the amount of time you
spend writing boiler-plate code for yourself. This boiler-plate code is an
approximation of common tasks, which is not intended to replace the process
of writing your code, but to enhance it by doing some of the grunt work for
you.

Every application has different requirements, which means that every
application must have custom code to perform the work of the specific
requirements. It is not logical to expect Visual Studio to write all of your
code for you. It can give you a start, and you're on your own from there. If
it was possible for Visual Studio to do this, there would be no need for
programmers. Any AOL user could type in a set of requirements, and Visual
Studio would write their application for them.

So, yes, I knew what you meant. But I'm not sure you know what I mean!

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:OQ****************@TK2MSFTNGP04.phx.gbl...
Is there a way to just have it read and set with no additional work ?


Sure, pay someone to write the code for you. Of course, you'll have to
work to make the money to pay for it, so, perhaps I should have said
"no."


You know what I meant ;) Because binding data in one way is done without
writing a line of code so I thought maybe there is a way to save data back
without too many lines of code ;) Or what is the simplest way to do it in
this case ?
Jarod

May 11 '06 #4

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

Similar topics

7
by: Egor Shipovalov | last post by:
I'm implementing paging through search results using cursors. Is there a better way to know total number of rows under a cursor than running a separate COUNT(*) query? I think PostgreSQL is bound...
6
by: dddddddd2444444 | last post by:
Hi,please help... It works fine when I define a 2-D array like char code. But it won't work when I try to define the array dynamically using a function. It just crashes. Does anyone know why?...
7
by: GaryB | last post by:
I have an untyped datatable that has financial numbers and controls that were populated by code (not a simple fill from a DA). Now I want to insert subtotals into it. I wrote a sub to do so that...
0
by: Subba Rao via DotNetMonster.com | last post by:
---------------------------HTML---------------------------------------- <html> <head> <title>:: DHTML Table Demo ::</title> <script langauge="javascript" src="InterchangeRows.js"></script>...
12
by: Graham Blandford | last post by:
Hi all, Would someone be able to tell me the most 'graceful' way of removing unwanted rows from a dataset based on a condition prior to update? OR, resetting the rows all to unchanged after they...
68
by: Martin Joergensen | last post by:
Hi, I have some files which has the following content: 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0
11
by: jimstruckster | last post by:
I have a table with 10 rows, I want all rows except for the first to be hidden when the page first opens up. If the user puts a value in a text box in the first row then I want the second row to...
3
by: Niyazi | last post by:
Hi all, I have a dataTable that contains nearly 38400 rows. In the dataTable consist of 3 column. column 1 Name: MUHNO column 2 Name: HESNO Column 3 Name: BALANCE Let me give you some...
0
by: rn5a | last post by:
All the rows in a DataGrid are accompanied by a CheckBox. When a user checks the rows & clicks a Button, the checked rows get deleted. For e.g. assume that the DataGrid displays 10 rows. A user...
3
by: nigelesquire | last post by:
Please help! I'm trying to clone and delete multiple rows with JavaScript. I need two delete buttons that work...! I only have one for now, but it's not working properly, the output count is...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.