473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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
Feb 23 '06 #1
2 1884
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?...8-1def3152436f

or

http://www.vb-tips.com/default.aspx?...d-203ca99d2825

Or whatever else you find accoording this.

I hope this helps,

Cor
Feb 23 '06 #2
Thansk Cor;
I'll upgrade to VS 2005 then.

Bill
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eX**************@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?...8-1def3152436f

or

http://www.vb-tips.com/default.aspx?...d-203ca99d2825

Or whatever else you find accoording this.

I hope this helps,

Cor

Feb 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Emerson | last post by:
The following assumes a System.Windows.Forms.DataGrid with a System.Data.DataTable set as the DataSource. I'm programming in C# Here's my scenario I click in a cell on a DataGrid. I enter some...
0
by: Tal Sharfi | last post by:
Hi everyone I recently had the need for StringGrid object same as the one that Delphi has. An object that helps show lists of other objects in a simple grid. I searched the news groups and...
3
by: Darren | last post by:
Guys, I have a template column with a picture and when I click on it I would like to enter edit mode and instead of the picture being displayed I need a drop down list populated with data. ...
2
by: DraguVaso | last post by:
Hi, I'm looking for a nice way to format the cell of my datagrid according to some predefined 'rules'. I found a lot on the site of George shepherd, but it wasn't really what I was looking for:...
16
by: stojilcoviz | last post by:
I've a datagrid whose datasource is an arraylist object. The arraylist holds many instances of a specific class. I've two questions about this: 1 - Is there a way by which I can obtain a...
5
by: Earl | last post by:
I want to fire a database update off of a single change to a single cell in the datagrid. This apparently cannot be done using keypress, keyup, keydown, etc. I've read George Shepard's FAQ and...
2
by: Ryan Liu | last post by:
Can someone give a sample to prevent a row from being deleted in a datatable? I tried e.Row.RejectChanges(); in dt_RowDeleting() but seems does not work. I need verify if there other data...
7
by: GaryDean | last post by:
(one of our developers posted this and it got no answer so I'm giving it another try) I'm converting a DataGrid utility component that previously used the columns array to function as it has in...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.