Click here to Skip to main content
15,895,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello sir.

I have two lables and two textboxes, one button and one gridview.
Whenever I enter some text in the textboxes and press enter, that data sould be saved in the database and displayed on the gridview below.
To do this, what is the procedure to follow?
Please tell me.
Thank you.
Posted
Updated 26-Nov-10 2:11am
v2
Comments
JF2015 26-Nov-10 8:11am    
Edited to fix spelling.

1 solution

You have to achieve it with dataadapter

On save button click event add data to database..

and retrive saved data into dataset/datatable by use of dataadapter and assign dataset/table as datagrid views datasource at end of save button click event..
and a

This will be logic for your query

.

And please always try to give which language or platform you are using in every questions so tht we can provide you the sample codes

..
Enjoy coding,.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900