How to bind textbox and datagridview in c # form?

  • 0
    Hello.
    I dropped a datagridview on the form, which shows a table from the database.
    I want to throw several textboxes next to it, which will be tied to the current record, which is selected in the table, but for some reason the table cursor is not associated with the cursor in the textboxes. The textboxes show the first record all the time, although I am successfully editing the data with the table.
    What am I doing wrong, and what should I do to make the textboxes snap to the cursor?

    Microsoft c # 2010 express environment, base acces.
    C# Anonymous, Jan 17, 2019

  • 1 Answers
  • 0
    In the textbox bind, you need to change the "source update mode" from OnValidation to OnPropertyChanged and everything starts working
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!