Click here to Skip to main content
Rate this: bad
good
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 table..how 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
Comments
JimJos at 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
good
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 Smile | :)
  Permalink  

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



Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2014
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