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.
Unfortunately, activation email could not send to your email. Please try again.

ArrayList binding

Thread ID:





30096 Jun 10,2005 10:53 AM Jun 10,2005 11:26 AM Windows Forms 1
Tags: GridControl
John Passarelli
Asked On June 10, 2005 10:53 AM

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?

John Passarelli
Replied On June 10, 2005 11:26 AM

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()


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.