problem with propertymanager ( textbox bound to dataset )

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

    problem with propertymanager ( textbox bound to dataset )

    Hi

    I have problem with propertymanager in my code. PositionChanged event
    is not even raised. When i increase position, the value remains the
    same - as a result textbox.Text value remains also unchanged.
    How to solve these problems? I have tried to google but couldn't find
    a solution.

    ps - dataSet11 is typed dataset and is properly filled.

    private void Form1_Load(obje ct sender, EventArgs e)
    {
    employeesTableA dapter1.Fill(da taSet11.Employe es);

    tb = new TextBox();
    this.Controls.A dd(tb);
    tb.Location = new Point(50, 50);
    tb.DataBindings .Add("Text", dataSet11.Emplo yees,
    "Lastname") ;



    pm = (PropertyManage r)this.BindingC ontext[tb];
    pm.PositionChan ged += new
    EventHandler(pm _PositionChange d);

    }

    void pm_PositionChan ged(object sender, EventArgs e)
    {

    }

    private void button1_Click(o bject sender, EventArgs e)
    {
    pm.Position += 1;
    }

    Kind Regards
  • Piotrekk

    #2
    Re: problem with propertymanager ( textbox bound to dataset )

    Thank you for your answer. But when is PropertyManager /
    CurrencyManager really usefull then?
    PK

    Comment

    • Piotrekk

      #3
      Re: problem with propertymanager ( textbox bound to dataset )

      I guess I will stay with BindingSource for simplicity ( Since am quite
      new to ADO.NET ) . Thank you.

      Comment

      Working...