c# - System.IO.IOException on click of DataGridHyperlinkColumn WPF -


i have datagrid on page in wpf application,

application data grid

<stackpanel>     <datagrid x:name="dgmaster"             autogeneratecolumns="false"             fontfamily="calibri" fontsize="15" isreadonly="true"              itemssource="{binding}"             clipboardcopymode="includeheader" columnwidth="auto"              horizontalalignment="left" verticalalignment="stretch"              height="auto" width="auto">         <datagrid.columns>             <datagridtextcolumn binding="{binding task id}" width="auto" header="task id"/>             <datagridhyperlinkcolumn binding="{binding status}" width="auto" header="status">                 <datagridhyperlinkcolumn.elementstyle>                     <style>                         <eventsetter event="hyperlink.click" handler="dg_hyperlink_click" />                     </style>                 </datagridhyperlinkcolumn.elementstyle>             </datagridhyperlinkcolumn>         </datagrid.columns>     </datagrid>     <button name="btn" click="btn_click" width="80">close</button>  </stackpanel> 

code behind , event handler method below:

private void dg_hyperlink_click(object sender, routedeventargs e)         {             messagebox.show("hello");         } 

on hyperlink.click event, code inside dg_hyperlink_click method gets executed, after method call, below error , code freezes:

 system.io.ioexception unhandled   hresult=-2146232800   message=cannot locate resource 'assigned'.   source=presentationframework 

i want open new window based on value of status not sure why getting error.

thanks in advance help!


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -