Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
private void Form1_Load(object sender, EventArgs e)
{

i am using disconnect archeticure

new SqlConnection("Data Source=\\\\\\\ IDoper=x;\\\\\");

SqlDataAdapter customersTableAdapter =
new SqlDataAdapter("Select * from Customer", connectionString);

DataTable customerTable = new DataTable();

customersTableAdapter.Fill(customerTable);

bindingSource1.DataSource = customerTable;
}
i have save button it's code
bindingSource1.EndEd()
when i am trying to save i can't save in database what is the matter
Posted
Comments
Varun Sareen 23-May-13 5:43am    
What error is coming?
man alman 23-May-13 7:16am    
No error Mr.Varun however no record saved in the database (customer table).
i mean nothing saved after pressing save button.
Thanks in advance
Varun Sareen 23-May-13 7:46am    
try to use the debug mode and see what actually is happening with your code. And you can take reference from this link:-

http://www.dotnetperls.com/sqldataadapter

Please let me know if it helps you out or not.
Ashad25 21-Jul-13 5:49am    
Can you share the code which you are using for saving the data into customer table.
The above code you have share is used for select data from customer table.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900