Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataSet question

Status
Not open for further replies.

goneWildCoder

Programmer
May 26, 2004
20
US
How do I get the value of a cell in a datagrid when the user goes to the next cell?

I have a ColumnChanging event but it would not be fired when the value of the cell is not changed. I want to handle exactly this case !!

Please help.

 
I have a dataset with a columnchanging event in which i do validations for values entered in a cell.

When the user hits the tab key without changing the value of the cell, the columnchanging event does not get fired. (this is b'coz the columnchanging event gets fired only when the value in a column is changing!!).

What I want to do is, I want to trap the occasion when a user hits the tab key without changing the value in a column. This would allow me to disallow null values in a datagrid.

If you have a simpler way to accompolish this, do let me know.

Hope this is clearer...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top