Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > data source ignoring values problem
 

data source ignoring values problem

Hi all

Form the last six months i am developing an application in C# 2008 and sql server 2000 and
Now im stuck and Dont know what to do.

Here is what i am dealing with.

i have a form named applicants and it contains alot of information reguarding the applicant.
i has 45 fields in the database and i am using all those fields in my forms.

i Have designed the form by the following method.

1)Created a new dataset by adding a new data source
2)added required tables into that dataset.
3)draged and droped the table from the datasource window on to my form and then written the required code.


After the completion of the form i was testing that form and find out that 2 fields are saving null in the database.i again rechecked focusing on those two fields.i selected the values properly and then saved the record.it again did the same (did not saved those fields instead saved null).i deleted those two fields and reinseted them from the toolBox then bound them and then tryed to save it.this time these two fields were saved with proper data but two other fields on that form saved null values.I continued on deleted the fields which were saving null and inserted them again.But the problem continued.on every save two of the fields are ignored by the binding source filling null in them.

One more thing if i continue on saving the record one after the other the some times all the fields are saved but for the first record it always ingore the values

I cant unserstand y this is happening to me.I have done alot of hardwork on it and i am counting on u peoples.You are my last hope

Plzz Help me

Thanks


C# lover
sohail Khaliq  Tuesday, July 14, 2009 2:05 PM

Hi,

Which way do you use to save data? Command text or Stored Procedures?

Seems you need to check your project. Set breakpoints and see whether the data has been passed correctly.

If still can’t figure out, please show your code, this will help us to reproduce this issue and find out the reason.

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Tuesday, July 21, 2009 8:50 AM

You can use google to search for other answers

Custom Search

More Threads

• Setting Position Property on BindingManagerBase/CurrencyManager has no effect
• Form only saves last changes to database
• collecting data from dataset
• SQL DataGridView Binding
• How to show a column from a dataview.rowfilter
• ODBCDataAdapater.Update
• Insert into statement
• Data Source Configuration Wizard error "An item with the same key has already been added"
• BindingNavigator question...
• DataGrid: Automatically adjust column widths.