Refreshing one row of a TypedView?

Posts   
 
    
AlanD
User
Posts: 26
Joined: 19-Sep-2006
# Posted on: 12-Mar-2007 16:09:37   

Hi all, I'm using a TypedView to present a readonly summary of data to the user. When the user double-clicks on a row, I bring up an editor that allows him/her to change things. What I'd really really like stuck_out_tongue_winking_eye is to be able to refresh just one row of the typed list when the user saves from the editor i.e. the one row representing the edited object would be forced to update and reflect the new values.

I know I could just refill the whole TypedView, but - There's a quite a lot of records so it won't be too fast - I'm not sure what I would need to do to make sure the user doesn't lose their place in the Typed view both logically and visually (Infragistics WinGrid).

LLBLGen PRO designer: 1.0.2005.1.Final, July 6th 2006, SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll version: 1.0.20051.60719 C# 2.0, VS2005 Self-servicing

Thanks in advance for any help!

Alan

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 12-Mar-2007 17:45:13   

A TypedView is a dataTable. If you don't want to re-fetch the entire dataTable, and you want to fetch one row only.

I suggest to fetch the TypedView into another instance using the PK as a filter (fetching one row only).

Then you can manually update the old DataRow with the new DataRow.

AlanD
User
Posts: 26
Joined: 19-Sep-2006
# Posted on: 13-Mar-2007 14:07:20   

Yep, that worked fine. Thanks! smile Alan