Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Data binding bug - move previous won't move previous
 

Data binding bug - move previous won't move previous

I have a windows form bound to a table in a dataset. I first used a BindingNavigator and I noticed that while the move last, next and first worked as expected the move previous did not. If I click 'move last' and then 'move previous' it will not move from the last position. Move previous does work if I use move next to go partly into the table and back againbut once it's at the end 'move previous' is done for the day.

I pulled out the BindingNavigator and put in buttons and wrote C# code to do the same functionality but I got the same results. It sorta works sometimes, exactly as above. I tried changing the position value instead of using the Move methods and again the results are the same �it works but not if it’s at the end. I can step through the code and it just ignores it. There are no error messages or other indications that anything is wrong.The only way around this that I've found so far is to use "Position = 0 and then Position = Original Position - 1". That’s pretty sad and I shouldn’t have to do that.
I haven't found any help with this after many attempts at googling various versions of "c# data binding move previous bug�

Please help.

Charles T D  Sunday, May 31, 2009 10:15 AM
Hi Charles,

If there's any invalid data in the last record, it might prevent you from moving to other record. So would you please check out it? If that's not the case, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Monday, June 01, 2009 10:39 AM
We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post editor window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Monday, June 08, 2009 12:05 PM

You can use google to search for other answers

Custom Search

More Threads

• DataGridView- MoveLast
• Data Navigation with OleDb
• confirm delete + checkbox + datagrid
• DataGridView multiple select right click problem
• DataGrid Blinding Report Problem Urgently
• MS visual web developer database
• How to convert JoinView to DataTable
• Validating in ASP.Net
• datagrid
• DataGridview