Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2006

Tip: Looking for answers? Try searching our database.

datagridview dinamic fill

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
luibio@gmail.com - 22 Dec 2006 19:22 GMT
How can i made SUB to fill a datagrid view with large amount of data
like SLQ 2005 query?
RobinS - 22 Dec 2006 20:28 GMT
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.
----------------------------------
> How can i made SUB to fill a datagrid view with large amount of data
> like SLQ 2005 query?
luibio@gmail.com - 22 Dec 2006 22:49 GMT
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
[quoted text clipped - 4 lines]
> > How can i made SUB to fill a datagrid view with large amount of data
> > like SLQ 2005 query?
RobinS - 23 Dec 2006 00:26 GMT
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.
----------------------------
> thanks to quickly, and excuse me for my english.
>
[quoted text clipped - 21 lines]
>> > data
>> > like SLQ 2005 query?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.