Home All Groups Group Topic Archive Search About

Simple question - Datagrid - how to detect change in a row cell?

Author
23 Feb 2006 2:07 PM
Bill nguyen
Please tell me the Datagrid events that I can use to detect data entry in a
single cell of the active row.
I need to put a value in another cell based on user input on other cells in
the active row.

In a textbox, I can use _textChanged event or _keyUp event, etc...

Thanks a million

Bill

Author
23 Feb 2006 4:07 PM
Cor Ligthert [MVP]
Bill,

I never succeeded in that with the DataGrid direct or any column change
event in 1.x, despite all kind of column change events I have seen here. (I
thought that this part is fixed with the DataGridView and 2.0).

However you can use the textbox events if it is a textbox or just the paint
event, which is maybe a little bit expensive (don't think to much of that,
painting itself is much more expensive).

Have a look at samples on our website by instance this two.

http://www.vb-tips.com/default.aspx?ID=30d9d2fd-9f10-4928-b7c8-1def3152436f

or

http://www.vb-tips.com/default.aspx?ID=bece831d-6742-4364-bd0d-203ca99d2825

Or whatever else you find accoording this.

I hope this helps,

Cor
Author
23 Feb 2006 8:13 PM
Bill Nguyen
Thansk Cor;
I'll upgrade to VS 2005 then.

Bill
Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:eXMgKMJOGHA.3576@TK2MSFTNGP15.phx.gbl...
> Bill,
>
> I never succeeded in that with the DataGrid direct or any column change
> event in 1.x, despite all kind of column change events I have seen here.
> (I thought that this part is fixed with the DataGridView and 2.0).
>
> However you can use the textbox events if it is a textbox or just the
> paint event, which is maybe a little bit expensive (don't think to much of
> that, painting itself is much more expensive).
>
> Have a look at samples on our website by instance this two.
>
> http://www.vb-tips.com/default.aspx?ID=30d9d2fd-9f10-4928-b7c8-1def3152436f
>
> or
>
> http://www.vb-tips.com/default.aspx?ID=bece831d-6742-4364-bd0d-203ca99d2825
>
> Or whatever else you find accoording this.
>
> I hope this helps,
>
> Cor
>