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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind a textbox to an ArrayList

Thread ID:

Created:

Updated:

Platform:

Replies:

260 May 16,2002 06:34 PM UTC May 16,2002 08:08 PM UTC WinForms 1
loading
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"));

CONFIRMATION

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.

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

;