c# - ObservableCollection(ReadOnly) to editable -


i have sl4 wcf / ria lob learning with. have sql view returning current inventory iqueryable. sql view marked read-only want / no changes db.

at front end (view), want populate datagrid information, allow editable user picks available inventory. seems me binding of datagrid should different collection can manipulate in memory.

currently have typical dds pulling query back:

<riacontrols:domaindatasource autoload="true" loadeddata="qryinventorydds_loadeddata"                                    name="qryinventorydds" queryname="getqryinventoriesquery" >         <riacontrols:domaindatasource.domaincontext>             <my:domainservice1 />         </riacontrols:domaindatasource.domaincontext>     </riacontrols:domaindatasource> 

if can make give me direction on how should "copy" e.entities or such can manipulate , bind appreciate greatly.

i've search couple days , can't find examples.

many thanks!

try this.

<data:datagrid x:name="mydatagrid" itemssource="{binding elementname=qryinventorydds, path=data}" rowdetailsvisibilitymode="visiblewhenselected"> 

Comments