Bound datagridview not updating datasource Xxx video pak mob
After you do that the datagridview does not seem to want to display the datatable correctly.
I checked the datasource for the datagridview using the debugger and it clearly has all of the rows of data in it but it simply doesn't display them.
This seems to work just fine but it seems like a really terrible way to handle this.I am hoping for either a better solution or at least and explanation as to why the dt.reset() causes this problem. As far as i have understood you are making differnt queries from differnt tables. Clear() method it only Clears the rows assosicated with the columns(i.e the columns from the Data Set Object). What you have to do is to set the Data Source Value again to the other Table.You get the data from the SQL Server and then set the data in a Data Set; This data Set Object is then added to the bs. So To summarize set the Data Source Property again. Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. Text = "Form1" ' Create an Array List containing some of the State objects. Add(New State("Montana", "Helena")) binding Source1 = New Binding Source() ' Bind Binding Source1 to the list of states. Data Source = states ' Bind the two text boxes to properties of State.
The user can then select a table from the combobox and I then populate the datagridview on the form with the contents of the selected table.