O
O
Oxoron2015-02-09 21:28:40
.NET
Oxoron, 2015-02-09 21:28:40

How to notify a collection about changes in a UI element?

Good evening.
It is required to write a UI form for editing the config file (plus, a couple of little things). In config-e there are 300 name-url pairs, pulled through ConfigSection. Next, I intend to throw them into the DataGridView, the user will conjure there, and I count back. But reading back is lazy. I googled, found everything about notification of UI elements about changes in DataSource collections.
Question: can user changes in the DataGridView be automatically returned to the collection?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
M
mayorovp, 2015-02-10
@mayorovp

Try simply assigning the collection to the DataSource. If it doesn't work, see the BindingList<> class.

L
leclecovich, 2015-02-10
@leclecovich

MVVM pattern is for you.

M
MrDywar Pichugin, 2015-02-22
@Dywar

ObservableCollection
A collection that automatically changes the UI and possibly back, read
https://msdn.microsoft.com/ru-ru/library/vstudio/m... (v=vs.100).aspx
It already implements the interface you need.

A
Artem @Jump, 2017-09-28
curated by the

Of course, transferring the system to another PC is real, there are no problems.
Create a disk image and transfer to another PC, boot up, install drivers and work.

but on the PC I would like to have a face
It is not entirely clear what a face is.
If we are talking about a license - the license cannot be transferred in any way. The OEM license is tied to a specific computer.
The OS version turns out to be OEM, but it cannot be transferred, but maybe there are ways?
Of course not and cannot be.

A
A person from Kazakhstan, 2017-09-28
@LenovoId

Windows is not portable in any way ... except that you can duplicate the system image through acronis true image
it is very dependent on the hardware on which it was installed

S
Sergey Druzhko, 2017-09-28
@leave_me_here

Isn't ten free yet?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question