Welcome Guest Search | Active Topics | Sign In | Register

GridView - Cell Modified on Excel like grid Options
Mona
Posted: Wednesday, April 7, 2010 12:11:21 PM
Rank: Advanced Member
Groups: Member

Joined: 5/15/2009
Posts: 33
Hi,

I noticed cell Modified is triggered even if you clicked on the cell, hit ESC and did not change anything in the cell (for the Excel like grid0. Is this how it's supposed to work? What if the user did not intend to change the cell but by mistake clicked on it... Shouldn't the event be triggered as modifed only if there was an actual change in the cell? If not, then what's the best way to keep track if it was really modified?

Thanks.
eo_support
Posted: Wednesday, April 7, 2010 4:56:33 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We are not ware ESC would trigger modified event. Can you provide a sample page?

Thanks!
Mona
Posted: Wednesday, April 7, 2010 6:05:14 PM
Rank: Advanced Member
Groups: Member

Joined: 5/15/2009
Posts: 33
Oh, my mistake ESC would not fire the modified event. I presented teh question wrong.

I meant to say, if you click in a cell and don't make any change and then click on a different cell and hit ESC, the 1st cell fires the Modified event (2nd cell doesn't fire it because ESC was hit), even though the cell was not modified. The user just clicked on it without modifying it.

So is there any way to get around that? (not triggering the Modified event unless there was a change in the cell?)

Thanks again.
eo_support
Posted: Wednesday, April 7, 2010 6:12:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe that's the designed behavior. The reason is for certain columns, especial custom columns, a "default value" may be filled in just because you clicked it. Also for certain column a click does trigger a change immediately (such as checkbox column). Thus the logic is simplified as long as you enter edit mode and leave, the cell is considered modified. If it causes problem for you, you can compare the new data with the old data in your data source to decide whether to write any changes back.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.