Results 1 to 2 of 2

Thread: Databinding on a ListView

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    San Diego - California
    Posts
    251

    Databinding on a ListView

    I am trying to bind a column in my datatable into a column in the list view.

    The code below:

    ListView.DataBindings.Add("Columns(0).Text", tb_Areas, "Area")


    Returns the error:
    Can't bind to property 'Columns(0).Text' on target control.

    I am not specifing the property to bind to correctly - how does one specify a column in the ListView.

  2. #2
    Junior Member
    Join Date
    Dec 2001
    Posts
    18
    Hi,

    I'm not 100% sure about this as I'm fairly new to .Net but have a look at the 'Mapping Name' property. I think it has something to do with that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width