Click here to Skip to main content
15,887,980 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello....

I have one Problem in my Web Application..
In my DB some data is stored with predefined 0's so if data is not available in some fields, at that time it shows 0 in grid view cell.


now when i move my mouse pointer on that cell(with 0 value), at that time the value of that particular cell will be changed with 1 and also it reflects in database table also....

in short i want to change the grid view's cell value with mouse over event....??


thank you....!!!
Posted
Updated 10-May-17 5:06am

1 solution

Handle the event in JavaScript, update the cell, then use an AJAX method to update teh database.

I can't see a good use case for this logic though. There should more to updating your data than a mouse move, which could be completely accidental.
 
Share this answer
 
Comments
rahkan 9-Aug-11 10:26am    
I agree with Mark, if you're going to do something like this you might as well just go to the database and change all of the 0's to 1's there and save yourself time. Now if you wanted to do it with a mouse click instead of just a mouseover that would make more sense as it's at least a little less likely to happen by accident.

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