c# - How to update my toolkit? Extended Data Grid Cell Template Text Box Value Without Rebinding Data Grid in UWP? -
i have problem in task. use universal windows platform (uwp) technology implement 1 functionality want update data grid cell template value without refresh data grid.
inside cell template have taken 1 text box control update value in column field. requirement whenever give text box value update particular row not refresh data grid.
as per understanding below use code , snap shot image.
border bd = (border)bdname; mytoolkit.controls.datagrid dg = (mytoolkit.controls.datagrid)bd.findname("datagrid"); mytoolkit.controls.datagridtemplatedcolumn dtc = (mytoolkit.controls.datagridtemplatedcolumn)dg.columns[2]; datatemplate dte = (datatemplate)dtc.celltemplate; dte.setvalue(selecteditemproperty, "0000"); textbox tx = (textbox)dte.loadcontent(); tx.text = ((windows.ui.xaml.controls.textbox)sender).text.tostring(); textbox tx = (textbox)dte.setvalue(selecteditemproperty, "7777");
Comments
Post a Comment