BindingSource ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jarod

    #1

    BindingSource ?

    Hey
    I tried to use bindingSource created by wizard from dataGridView. I set it
    to bind data from my class I have public property "Source" that returns list
    of objects with property of "SampleText ". Wizard created bindingDataSour ce
    object, and a column in my dataGridView but when I run this it doesn't seems
    to execute any data. I tried to bind dataGridView.Da taSource to my object
    manually it works perfectly ;) I also tried to bind dataGridView.Da taSource
    = myBindingSource ; but it doesn't work at all.
    Jarod

  • Joanna Carter [TeamB]

    #2
    Re: BindingSource ?

    "Jarod" <blueice@NOSPAM .gazeta.pl> a écrit dans le message de news:
    %238Z7VLIBGHA.3 928@TK2MSFTNGP1 1.phx.gbl...

    | I tried to use bindingSource created by wizard from dataGridView. I set it
    | to bind data from my class I have public property "Source" that returns
    list
    | of objects with property of "SampleText ". Wizard created
    bindingDataSour ce
    | object, and a column in my dataGridView but when I run this it doesn't
    seems
    | to execute any data. I tried to bind dataGridView.Da taSource to my object
    | manually it works perfectly ;) I also tried to bind
    dataGridView.Da taSource
    | = myBindingSource ; but it doesn't work at all.

    You must connect the DataSource property of the BindingSource to a valid
    list of the type in the BindingSource. You have to do this in code in the
    constructor of the form, or similar.

    Joanna

    --
    Joanna Carter [TeamB]
    Consultant Software Engineer


    Comment

    • Jarod

      #3
      Re: BindingSource ?

      > You must connect the DataSource property of the BindingSource to a valid[color=blue]
      > list of the type in the BindingSource. You have to do this in code in the
      > constructor of the form, or similar.
      >[/color]

      Thanks a lot :) When you work with wizard you expect he will do everything
      for you ;)
      Jarod

      Comment

      Working...