Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
satyapriyanayak
Narayanan
Thamilselvan J
Anna Harris
Eone James
Home
>>
Forum
>>
Windows Application
>>
Post New Question
Subscribe to Forum
update table using datagridview content
Posted By:
Jayakumar
Posted Date:
March 05, 2010
Points:
2
Category :
Windows Application
hi,
i need suggestion for windows application as i am new to windows application.
first--if binding datagridview on a button click
second--i want to pass the data/values from datagridview(on content click) to the textboxes.
three- i want to edit and save the textbox values again to table.
how it can be accomplished..
Responses
Author:
Syed Shakeer Hussain
Company URL:
http://www.dotnetspark.com
Posted Date: March 05, 2010 Points: 5
Hi,
check the following link
http://www.dotnetspark.com/kb/608-how-to-get-values-slected-cell-row-datagridviewwindows.aspx
Author:
Syed Shakeer Hussain
Company URL:
http://www.dotnetspark.com
Posted Date: March 05, 2010 Points: 5
Hi,
to save the textboxes values:-
SqlCommand cmd=new SqlCommand("update tablename set name='"+txtmarks.Text+"',marks="+txtmarks.Text+" where id="+txtid.Text+"",conn);
SqlDataAdapter da=new SqlDataAdapter(cmd);
DataSet ds=new DataSet();
da.Fill(ds,"tablename");
DataGridView1.DataSource=ds.Tables["tablname"];
Author:
Syed Shakeer Hussain
Company URL:
http://www.dotnetspark.com
Posted Date: March 05, 2010 Points: 5
Hi kumar,
check the below link for updating
http://www.dotnetspider.com/resources/28629-How-Add-Update-Delete-Row-Table-using.aspx
Author:
Jayakumar
Company URL:
http://www.dotnetspark.com
Posted Date: March 05, 2010 Points: 5
hi guys
thank you for ur code guide...
i will try these things and let u know the result.
thanx 1 more
Author:
Jayakumar
Company URL:
http://www.dotnetspark.com
Posted Date: March 05, 2010 Points: 5
thanx
Post Reply
You must
Sign In
To post reply
Related Questions Related Questions
Get XML Data in datagridview from SQL SERVER Table
binding a table under button click event inside datagridview
Auto update in datagridview control using vb.net
DataGridview update
getting data table from database to datagridview
Latest Forum Questions From The Same Category
Thumb Impression Machine connectivity
Daily Popup message for Windows Applicaiton in VB.net
Using Windows Service for Windows Application in C#.NET
Difference between add and insert methods of a ListBox Control?
Set Error Provider for Datagridview in C#.net
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Here
Quick Links For Forum Categories:
ASP.Net
Windows Application
.NET Framework
C#
VB.Net
ADO.Net
Sql Server
SharePoint
OOPs
Silverlight
IIS
JQuery
JavaScript/VBScript
Biztalk
WPF
Patten/Practices
WCF
Others
www.DotNetSpark.com
UnAnswered
All
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend