Click here to Skip to main content
15,907,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i've the requirement when i enter data in one cell in data gridview it will effect another cell...

for example i have two columns percentage and absolute value...
when i enter data in percentage,absolute value have to automatically set to 0 and vice verse...


which event should i use here....im using c#.net
Posted
Comments
dimpledevani 17-Jul-12 0:50am    
have you tried using the text changed event??

Hi,

This is for Windows.

You can use Column Expression in datatable to know more Click Here

For Web You can use Javascript

OnChange Event
 
Share this answer
 
v2
I would use javascript (jquery) for this..

HTML
<input type="text" onchange="$('#myOtherTextbox').val('0')" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900