Navigating a Grid


Author
Message
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
I am stumped. If I select a row on a grid, click edit, then navigate (click on another row or use the navigate buttons) away without changing any values, the BO considers the row dirty (IsDirty=true). Why is that? This is having some profound effects on my data. The row is being updated when nothing is really being updated.



Thanks!

Bill
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Bill.

You can try working with the SetDirtyOnEdit property. There are some posts about it here on the forum, here is one of them:

http://forum.strataframe.net/FindPost3384.aspx

Abraços.

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
It looks like Ivan is probably on the right trail here.  By default, when you call Edit on a BO, the IsDirty state will become True.  You can prevent this a couple of ways.  Set the property like Ivan mentioned, or don't use editing states at all, which is the approach that we generally use.  Instead of requiring the user to click 'Edit', we will always leave our fields enabled (like the StrataFlix sample) and then when a change is made, we will handle the IsDirtyChanged event and take whatever actions necessary to preset Save, etc.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search