wpf - Update a cell of a column on updating another cell of the same column in XamDatagrid -
i have requirement of updating cell of column on updating cell of same column in xamdatagrid.
iam trying implement using wpf, mvvm. please me out? data in grid getting populated , able type empsalary (on double clicking in cell under column). need update cell (under same column empsalary) onlostfocus of prviously edited cell. did try searching on net didn't find appropriate way handle this. stuck here. many help..
here xaml:
<igdp:xamdatagrid name="contentdatagrid" datasource="{binding datatobebound, mode=twoway}" updatemode="onupdate"> <igdp:xamdatagrid.resources> <style x:key="employeecellstyle" targettype="{x:type igeditors:xamtexteditor}"> <setter property="horizontalalignment" value="left" /> <setter property="horizontalcontentalignment" value="right" /> </style> </igdp:xamdatagrid.resources> <igdp:xamdatagrid.fieldlayoutsettings> <igdp:fieldlayoutsettings allowclipboardoperations="copy" allowdelete="false" allowfieldmoving="no" autofitmode="always" autogeneratefields="false" selectiontypecell="single" /> </igdp:xamdatagrid.fieldlayoutsettings> <igdp:xamdatagrid.fieldlayouts> <igdp:fieldlayout> <igdp:fieldlayout.fields> <igdp:unboundfield bindingpath="empname"> <igdp:field.settings> <igdp:fieldsettings allowedit="false" /> </igdp:field.settings> </igdp:unboundfield> <igdp:field name="employeesalary" label="employeesalary" visibility="visible"> <igdp:field.settings> <igdp:fieldsettings editorstyle="{staticresource employeecellstyle}" /> </igdp:field.settings> </igdp:field> </igdp:fieldlayout.fields> </igdp:fieldlayout> </igdp:xamdatagrid.fieldlayouts> </igdp:xamdatagrid>
Comments
Post a Comment