We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ArrayList binding

I have a DataboundDataGrid bound to an Arraylist. When items are added to the arraylist, the grid does not update. Yet when I query ((System.Collections.ArrayList)GridFileStatus.DataSource).Count, it is the correct value. How do I get the grid to "Refresh" with the data?

1 Reply

JP John Passarelli June 10, 2005 03:26 PM UTC

I figured it out, I had to call Refresh() on my grid to refresh the data. Duh.... Also, when adding a new object to an empty arraylist, I had to call Binder.InitializeColumns()

Loader.
Live Chat Icon For mobile
Up arrow icon