Home All Groups Group Topic Archive Search About

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

Author
5 Apr 2006 1:46 PM
johneevo
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

Author
5 Apr 2006 3:30 PM
Jim Hughes
With VS2005 you can use the DataSourceChanged event.

Show quote
"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
Author
5 Apr 2006 5:31 PM
johneevo
In article <evwxaXMWGHA.3***@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.



Show quote
> 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
>
>
>

AddThis Social Bookmark Button