|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Event of changing the grid-cell value.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 :) 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. Show quoteHide quote "Mr. X." <nospam@nospam_please.com> wrote in message news:#U3SNEM2KHA.1708@TK2MSFTNGP05.phx.gbl... > 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 :) 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 :) Show quoteHide quote "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message news:eLRrFGN2KHA.4016@TK2MSFTNGP05.phx.gbl... > 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. > > > > > "Mr. X." <nospam@nospam_please.com> wrote in message > news:#U3SNEM2KHA.1708@TK2MSFTNGP05.phx.gbl... >> 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 :) >
Change state of detached column of dataGridView.
AutoFilter method of Range class failed Creating Drive Partitions Error 30366 in VB behind VS(2005) project Outlook like Calendar for VB net Copy Word Doc Bookmarks from One Document to another (VB.net) Owner Drawn form background problems Treeview duplicate nodes (VB.NET 2008) Gridview order Accessing Sub Menu Items |
|||||||||||||||||||||||