i just need to perform a filling method that don't lock the application
while is loading the data,
my datagridview is linked with a dataset
(datagridview.datasource=getData(query)) and
i could like to show the data like the tableview query in SQL2005, and
let me to stop
the loading of data before (if necessary) the loading of all data.
As far as I know, you can't do that. Every sample I've seen of
using the DataGridView sets the data source = a dataset or a
datatable or a binding source that is defined accordingly.
Dim m_Adapter as CustomersTableAdapter = new CustomersTableAdapter()
Dim m_Customers as CustomersDataSet = New CustomersDataSet()
'uses table adapter to read db and fill dataset
m_Adapter.Fill(m_Customers.Customers)
m_Grid.DataSource = m_Customers.Customers
I don't think you can bind it to the results from a subroutine.
That doesn't mean you can't do it, it just means *I've*
never seen it done. Maybe it would work if you didn't allow
updates. And I don't know how you could stop it in the
middle of loading and show what you have so far, or even
how you could just stop it.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.