Datagridview datasource not updating

posted by | Leave a comment

Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site. I have an issue with a simple database editor application I am creating in C#.

private void cb Table Select_Selected Inde My problem is that the datatable shema is constantly changing based on what table is selected from the database (they all have different columns and, of course, rows associated with them).A simple dt.clear() only clears the rows from the datatable but leaves the columns in it.So, the next table that I get from the database simply 'appends' to the datatable the new columns and my datagridview shows nothing but all of the column headings for every table that I select from the database.I also tried, in conjunction with your suggestion, setting bs.datasource = null rigth after dt.clear() but this doesn't seem to effect anything.More Information (update): I did find that the problem is tied to the dt.reset() function in some way.

Leave a Reply

Free live public sex chat