PC Review


Reply
Thread Tools Rate Thread

datagridview dinamic fill

 
 
luibio@gmail.com
Guest
Posts: n/a
 
      22nd Dec 2006
How can i made SUB to fill a datagrid view with large amount of data
like SLQ 2005 query?

 
Reply With Quote
 
 
 
 
RobinS
Guest
Posts: n/a
 
      22nd Dec 2006
If you're using VS2005, set up a strongly-typed dataset using
the DataSet Designer and then bind it to the Data Grid by
dragging it onto a form.

Robin S.
----------------------------------
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How can i made SUB to fill a datagrid view with large amount of data
> like SLQ 2005 query?
>



 
Reply With Quote
 
luibio@gmail.com
Guest
Posts: n/a
 
      22nd Dec 2006
thanks to quickly, and excuse me for my english.

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.

it's possible to do?
tanks.

RobinS ha scritto:

> If you're using VS2005, set up a strongly-typed dataset using
> the DataSet Designer and then bind it to the Data Grid by
> dragging it onto a form.
>
> Robin S.
> ----------------------------------
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > How can i made SUB to fill a datagrid view with large amount of data
> > like SLQ 2005 query?
> >


 
Reply With Quote
 
RobinS
Guest
Posts: n/a
 
      23rd Dec 2006
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.

Sorry I couldn't help you more.

Robin S.
----------------------------
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> thanks to quickly, and excuse me for my english.
>
> 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.
>
> it's possible to do?
> tanks.
>
> RobinS ha scritto:
>
>> If you're using VS2005, set up a strongly-typed dataset using
>> the DataSet Designer and then bind it to the Data Grid by
>> dragging it onto a form.
>>
>> Robin S.
>> ----------------------------------
>> <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > How can i made SUB to fill a datagrid view with large amount of
>> > data
>> > like SLQ 2005 query?
>> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fill datagridview from sql mcnews Microsoft VB .NET 1 21st Mar 2011 05:24 PM
How do I fill a Datagridview? Co Microsoft VB .NET 4 13th May 2009 05:41 AM
How do I fill a Datagridview? Co Microsoft VB .NET 0 12th May 2009 04:45 PM
Fill Datagridview with rows so that it does not look empty? Mar72Vin Microsoft VB .NET 1 31st Mar 2007 05:45 AM
DataGridView how to fill asynchronously =?Utf-8?B?b2dz?= Microsoft Dot NET 0 13th Jul 2005 08:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:46 AM.