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

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -