Add New Row to a DataGrid in Silverlight WCF RIA Services -
some guidance silverlight wcf ria services... datagrid , detail view on same page
control layout datagrid detail view [add new row (button)]
if wanted add new row button pick new row in datagrid how that?
i have tried:
detailviewtest.web.services.mode1domaincontext ctx = (mode1domaincontext)worddomaindatasource.domaincontext; word word = new word() { word1 = this.word1textbox.text, dateadded = datetime.now }; ctx.words.add(word); ctx.submitchanges();
this adds word database not datagrid though datasource data worddomaindatasource. if restart application shows in datagrid. great!
(using silverlight 4 business application starting project )
if you're using mvvm / inotifypropertychanged pattern need fire onpropertychanged event on itemsource.
Comments
Post a Comment