dataset or bindingSource? (C# / C Sharp)

p1tter_pattter
p1tter_pattter used Ask the Experts™
on
Hi,
(first gotta tell ya, Im a total newbie)
Heres the progress so far, I have successfully got the data from a varchar thats called ex1 from the database into a textbox called ex1_textbox.
My dataset name is: settingsDataset1
my bindingsource name is: bindingSource1
my tableadaptername is _SettingsTableTableAdapter

How can i access the dataset via code?
For example:
MessageBox.Show("The dataset of EX1 is:" + <WHAT CODE COMES HERE?)

Then i want to do something like this:

(begin the edit)
ex1=ex1+"something";
(end the edit and update the database)

Thats it... am totally confused...

thanks in advance!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Reza RadConsultant, Trainer

Commented:
use a Grid View to bind your data set , and show the data, you can add ability to update and delete data too

Author

Commented:
Thanks!
I'll check them out...
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

Author

Commented:
Just checked those links out, they seem a bit too advanced for me :(

This is my entire app (its small really)
http://ezee.se/xmas/SplashScreen.rar

and im just trying to save the edits made in the "settings" form which contains 2 checkboxes and 1 textbox..

can you have a look please?
Commented:
Go via the dataset
then tables
then row
then fields

like this:

string chk_box_value_from_db = settingsDataSet11.Tables[0].Rows[0]["SplashDisabled"].ToString();

Author

Commented:
thx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial