Click here to Skip to main content
13,556,387 members
Rate this:
Please Sign up or sign in to vote.
I am new to MVVM..I m creating a silverlight application ..i have created dataservice n a branchMaster view...i have a datagrid in that view.i want to populate the datagrid with the records from branchMaster table.n also do insert,update n delete function on it..i have a show button ,update button n delete button,textboxes (i.e Cmpy_cd,Enter branchname,n so on)..on show click i have to fill the grid with records in branchMaster do i achive it...i have been reading about it..but finding it difficult to implement...plz do help...
Posted 21-Jun-12 17:19pm
Jim Jos 22-Jun-12 1:10am
Please put the code you have done so far we ll be able to help you out..
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Steps to be followed.

1.Bind the datagrid with a List.
2.Update the list on Update/Save/Delete
3.Use UpdateSourceTrigger(Recomended) to referesh the value of the List in Grid or bind with Item Source.

Enjoy MVVM :)

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180515.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100