Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Datagrid columns do not reflect column changes to database table.
 

Datagrid columns do not reflect column changes to database table.

I have a datagrid that is bound via abindingsource to aview in the database. I have added a column to theview andupdated thedata table in the dataset, however, when I go to add columns to the datagrid the new column does not show in the list.

Any ideas on what may be happening?

thanks,

Luis


Luis R. Lebron
llebron  Friday, January 30, 2009 1:54 PM

Hi Luis,

normally, this problem can be solved by rebuilding the project. Did you use the DataSet designer?

regards,

franking

franking  Friday, January 30, 2009 4:57 PM

The binding hasn't been refreshed.

Adam


Environment + Scope + Time Constraints + Management + Experience = Approach
1974 Code Shark  Friday, January 30, 2009 8:11 PM

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 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.


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  Thursday, February 05, 2009 1:36 PM
1974 Code Shark said:

The binding hasn't been refreshed.

Adam


Environment + Scope + Time Constraints + Management + Experience = Approach



How do I refresh the binding?
Luis R. Lebron
llebron  Friday, February 13, 2009 4:49 PM
franking said:

Hi Luis,

normally, this problem can be solved by rebuilding the project. Did you use the DataSet designer?

regards,

franking



Yes I tried rebuilding the project and I used the DataSet designer.
Luis R. Lebron
llebron  Friday, February 13, 2009 4:50 PM

You can use google to search for other answers

Custom Search

More Threads

• Dynamic DataGridView height
• Tip: Use the power of DataBinding, and avoid all the DataSet and SQL silliness.
• BindingSource.current resets property in object collection
• Active Form?
• Get datakey value from DataGridView
• BindingSource.Filter slow
• DataGridView help
• How to Detect Changes in a DataTable?
• Collections and Properties
• Databound a Stringarray to gridview...