A
A
alex_ak12017-05-16 10:44:28
Database
alex_ak1, 2017-05-16 10:44:28

How to bind textbox and datagridview on c# form?

Hello.
I threw a datagridview table on the form, which shows a table from the database.
I want to throw a few textboxes nearby, which will be tied to the current record that is selected in the table, but for some reason the table cursor is not associated with the cursor in the textboxes. The textboxes always show the first record, although I successfully edit 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, access base.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex_ak1, 2017-05-16
@alex_ak1

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question