A
A
alexey_khorin2022-03-19 19:28:10
SQL
alexey_khorin, 2022-03-19 19:28:10

How to add new data to the database, through a WPF form in C#?

Hello, I've run into a problem. There is a ComboBox cell in the data filling form, from which the names of the manufacturer (Name) of the string type should fall out from one table and be added to another under their ID (ManufacturerID), how to do this
623604878819d479045828.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2022-03-19
@firedragon

I just don't know.
Each cell has a bunch of events, including onchange.
Your task is to control these messages and do something.
In general, there are 2 strategies, the
first one you save at the time of input (well, so-so) the
second one checks what has changed and if the line is lost, output something like save the changes
In any case, you get strings, date numbers, then bring them into the desired form and throw them on the backend

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question