I have a textbox driven windows form in C# whose values corresponding to rows of a dataset being filled from a database table. When the user clicks the Insert button, I want to add a new row with values entered by the user.
After the user has finished entering a new record, I want to update the...
I have a textbox driven windows form created in C# and linked to a dataset. On the form, I have an add button that should allow the user to add a new record. How do I create a new record in the dataset which would be updated with values from the user?
I tried the following:
/// <summary>
///...
Stat792,
I tried it....i also tried adding the update command manually:
SqlCommandBuilder foo = new SqlCommandBuilder(adap);
adap.UpdateCommand = foo.GetUpdateCommand.CommandText;
However, I still get the error.....
Please help!1
Hi all,
I am getting the following error when trying to update database table:
"Error: Update unable to find TableMapping['Table'] or DataTable 'Table'.
Here is the code snippet that is throwing the error (specifically, the Update() command )
if (upDateFlag)
{
//update
SqlConnection...
Hi all,
I am getting this error when I am trying to print my windows form:
"Unable to find the report in the manifest resources. Please build the project and try again."
My report used to print fine before.Can anybody please provide me information on this error or point me where I can find...
Eli,
You need to commit the changes to the dataset after calling the update().
Add this to your code and it should work fine -->
ds.AcceptChanges();
Good Luck
I have a print button on my form and I want to directly print a report created in Crystal Reports when the user clicks this print button.
Can this be done? How??
Is there a way to capture error messages being displayed due to constraints enforced at the table-level which are not taken care of in code ?
I have a columnchanging method which does not get fired when a cell value is not changed (ie remains null). I cannot capture this event in code and I was...
I have a dataset with a columnchanging event in which i do validations for values entered in a cell.
When the user hits the tab key without changing the value of the cell, the columnchanging event does not get fired. (this is b'coz the columnchanging event gets fired only when the value in a...
How do I get the value of a cell in a datagrid when the user goes to the next cell?
I have a ColumnChanging event but it would not be fired when the value of the cell is not changed. I want to handle exactly this case !!
Please help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.