Event of changing the grid-cell value.

M

Mr. X.

Hello.
In VB.NET 2008.
I have dataGridView.
Which event occurs when changing data row value.
(Not all the times I am changing the value via the dataGridView directly.
There are also values that are changed directly via the datatable object.
I need a general method, please.
dataGridView is connected to BindingSource).

Thanks :)
 
C

Cor Ligthert[MVP]

In general you should avoid changing values using a datagridview, that is
the client area, you would use the object which is the datasource of the
bindingsource.
I understand from your other messages it is a datatable but it can be any
collection.

Just keep that as a general rule, never change, using code a value of a
control direct, which can also be affected by a user.
 
M

Mr. X.

I didn't explain myself well enough.
Indeed I am changing the dataTable, directly or indirectly.
What I do is :
I have a datagrid, and there is a button on the datagridView that show a
dialog box, which I can change extra columns, which are not seen on the
datagridView.
That's not the problem.
I need to catch the event when something is changed on dataSet, and there
are many events (on dataGrid, BindingSource),
and I don't know which one should I use.

Need help, please.

Thanks :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top