By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

How reflect the changes in array to bound grid

P: n/a
I have bound a array of objects to datagridview in vb.net. If I add new
objects to array, that doesn't reflect in datagridview. What I have to do?

Thanks,
Latha.P
Mar 19 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Wed, 19 Mar 2008 17:13:19 +0530, "Latha" <la***@chellasoft.com>
wrote:
I have bound a array of objects to datagridview in vb.net. If I add new
objects to array, that doesn't reflect in datagridview. What I have to do?
Use BindingList(Of T) instead of an array. It implements a lot of
binding related events.

If you want changes to the objects in the list to be reflected in the
bound controls, the objects in the list need to implement
INotifyPropertyChanged. See
<http://msdn2.microsoft.com/en-us/library/ms229614.aspxfor an
example.
Mar 19 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.