cyrus_ Posted January 18, 2006 Share Posted January 18, 2006 Hi ,I am wondering if it is possible to update a table (in a database) by binding it to a datagrid,I have succeeded to show my table by a datagrid (windows application, C#) and changa a value of a post (for exampe lastName) in the datagrid, but i want to see changes in my table. the value does not be changed in table.I mean i want to update my table by a datagrid in a windows application. It is possible? How ? thank you Link to comment Share on other sites More sharing options...
aspnetguy Posted January 18, 2006 Share Posted January 18, 2006 No you will have to execute a SQL query to update the table. Datagrid is for displaying data. Link to comment Share on other sites More sharing options...
cyrus_ Posted January 18, 2006 Author Share Posted January 18, 2006 even if you use dataset BindingContext and CurrencyManager???I have no chance? Link to comment Share on other sites More sharing options...
aspnetguy Posted January 18, 2006 Share Posted January 18, 2006 I guess this is what you want to do. This ties the update statements to each record in the datagrid.http://aspnet.4guysfromrolla.com/articles/121504-1.2.aspx Link to comment Share on other sites More sharing options...
cyrus_ Posted January 18, 2006 Author Share Posted January 18, 2006 thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now