How to add rows ?

  • Thread starter Thread starter Jarod
  • Start date Start date
J

Jarod

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
 
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.
 
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top