Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2008 Changing datasource for datagridview not showing changes...

$
0
0
Hi All (Again),

With your help I've get my Oracle ODBC connection sorted and have filled my Dataset correctly, but when I assign the new dataset (Same table, but has a where clause that cuts down the number of rows) to the datagridview it just shows 1 blank row. In the Locals window, If I click on the Data Visualizer for the datasource for the datagridview after I've changed its datasource then it shows the correct number of rows (4) even though the datagridview1.rowcount = 1. Interestingly, the data visualizer icon is not visible before I change the datasource even though there are hundreds of rows
My code:
Code:

DataGridView1.DataSource = ""     
DataGridView1.DataSource = ds
DataGridView1.Refresh()
DataGridView1.Parent.Refresh()

Any Ideas?

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>