Posted 8 September 2017, 12:30 pm EST
I want to use a spread to let the user edit the content of a table in a database.
I can connect to the database and show the table in the spread but I have not been able to send any change back to the database.
Can anyone show me a few lines of C# code that performs this task?
I have tryed code like this:
DataSet dataset = (DataSet)FSP_P_View.DataSource;
<SPAN class=kwd>if</SPAN> (dataset.HasChanges(DataRowState.Modified))
MessageBox.Show(<SPAN class=st>"Database updated "</SPAN>);
MessageBox.Show(<SPAN class=st>"No change found"</SPAN>);
But HasChanges allways returns false no matter how much I change in the spread