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

B

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
 
C

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
 

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