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

How to bind a textbox to an ArrayList

Thread ID:





260 May 16,2002 06:34 PM UTC May 16,2002 08:08 PM UTC WinForms 1
Tags: FAQ
Mukesh Motwani
Asked On May 16, 2002 06:34 PM UTC

I have an ArrayList personList consisting of objects of class Person. I need to bind the text value of textBox1 to the Names field of the class Person. textBox1.DataBinding.Add(new Binding("Text",personList,"Person.Name"); I am trying to use ArrayList as a datasource but I get a runtime error "Invalid string corresponding to "Person.Name". What string should I pass to the Binding Constructor? Thanks Mukesh

Clay Burch [Syncfusion]
Replied On May 16, 2002 08:08 PM UTC

Removing the class name from the third argument worked for me. textBox1.DataBindings.Add(new Binding("Text", personList, "Name"));


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon