PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET How to determine when a DataGridView's DataSource is finished being populated

Reply

How to determine when a DataGridView's DataSource is finished being populated

 
Thread Tools Rate Thread
Old 05-04-2006, 02:46 PM   #1
johneevo
Guest
 
Posts: n/a
Default How to determine when a DataGridView's DataSource is finished being populated


This would seem to be a fairly simple and straight forward thing to do.
So sorry if this has been answered somewhere already, but I have not
been able to find the answer.

I am creating a custom DataGridView component and need a way to
determine when the DataGridView's DataSource has been populated so that
I can perform some necessary processing.

TIA
  Reply With Quote
Old 05-04-2006, 04:30 PM   #2
Jim Hughes
Guest
 
Posts: n/a
Default Re: How to determine when a DataGridView's DataSource is finished being populated

With VS2005 you can use the DataSourceChanged event.

"johneevo" <johne_evo@no_spam_yahoo_nope.com> wrote in message
news:MPG.1e9d9431d894c0fd989683@msnews.microsoft.com...
> This would seem to be a fairly simple and straight forward thing to do.
> So sorry if this has been answered somewhere already, but I have not
> been able to find the answer.
>
> I am creating a custom DataGridView component and need a way to
> determine when the DataGridView's DataSource has been populated so that
> I can perform some necessary processing.
>
> TIA



  Reply With Quote
Old 05-04-2006, 06:31 PM   #3
johneevo
Guest
 
Posts: n/a
Default Re: How to determine when a DataGridView's DataSource is finished being populated

In article <evwxaXMWGHA.3972@TK2MSFTNGP02.phx.gbl>, NOSPAMJ3033
@Hotmail.com says...
Hi Jim,

Looks like I wasn't real clear in my description of what my problem is.

I don't need to trap for when the DataSource property is changed. What
I am looking for is a way to trap for when the DataSet's DataTable has
been populated with data. Say the end developer has issueds a call to
the Fill method. I need to trap for the completion of the Fill method.

Thanks for the response, sorry for the confusion.



> With VS2005 you can use the DataSourceChanged event.
>
> "johneevo" <johne_evo@no_spam_yahoo_nope.com> wrote in message
> news:MPG.1e9d9431d894c0fd989683@msnews.microsoft.com...
> > This would seem to be a fairly simple and straight forward thing to do.
> > So sorry if this has been answered somewhere already, but I have not
> > been able to find the answer.
> >
> > I am creating a custom DataGridView component and need a way to
> > determine when the DataGridView's DataSource has been populated so that
> > I can perform some necessary processing.
> >
> > TIA

>
>
>

  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off