TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Giovanni Medico
NA
39
650
Update table with textbox.DataBindings
Jun 8 2018 12:41 PM
Hello. I'm trying to figure out how to view the data and update it.
The problem is that it does not update
ds = new DataSet("Tab_Clienti");
da1 = new SqlDataAdapter("SELECT * FROM Tab_Clienti", Utility.ConnSQL);
//da1.TableMappings.Add("Table", "Tab_Clienti");
da1.Fill(ds, "Tab_Clienti");
txtRagione.DataBindings.Add(new Binding("Text", ds, "Tab_Clienti.Ragione", false, DataSourceUpdateMode.OnPropertyChanged ));
up to here everything is ok, I see the data
edit textbox and click button
da1.UpdateCommand = new SqlCommandBuilder(da1).GetUpdateCommand();
da1.Update(ds,"Tab_Clienti");
update does not work
Reply
Answers (
4
)
enterprise application and development
enterprise application and development