By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,949 Members | 2,043 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,949 IT Pros & Developers. It's quick & easy.

How to store data in data grid to database by single mouse click in Asp.net

P: 7
Hi,

I have working in Asp.net and C# application, i have used visual studio 2003 for my project, my project i need this logic, how to store data in data grid to database by single mouse click, could anybody please help to finish this, Advance thanks for any reply.


Thanks.
Mar 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: 67
Hi,

I have working in Asp.net and C# application, i have used visual studio 2003 for my project, my project i need this logic, how to store data in data grid to database by single mouse click, could anybody please help to finish this, Advance thanks for any reply.


Thanks.
Hi rocksoft,

your DataGrid must be having a DataSource right ? and it should be a DataSet or a DataTable. When you update the data grid, your DataSource is also getting updated. So what you have to do here is passing the DataSet or the DataTable to the Update() method of a DataAdapter object. You can write this code in the OnClick event handler of your button.
Mar 30 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.