Which checkBox was pressed in of those 2? (1 in each column)


hi,

i have 2 columns in datagrid. 1 checkbox in each of them. have put same checked event both checkboxes.

i wonder how possible know checkbox checked? possible in code below in somehow?

                        <data:datagridtemplatecolumn header="one">                             <data:datagridtemplatecolumn.celltemplate>                                 <datatemplate>                                     <stackpanel  orientation="horizontal" horizontalalignment="center">                                         <checkbox checked="checked_event" />                                     </stackpanel>                                 </datatemplate>                             </data:datagridtemplatecolumn.celltemplate>                         </data:datagridtemplatecolumn>                         <data:datagridtemplatecolumn header="two">                             <data:datagridtemplatecolumn.celltemplate>                                 <datatemplate>                                     <stackpanel  orientation="horizontal" horizontalalignment="center">                                         <checkbox checked="checked_event"/>                                     </stackpanel>                                 </datatemplate>                             </data:datagridtemplatecolumn.celltemplate>                         </data:datagridtemplatecolumn>            private void checked_event(object sender, routedeventargs e)         {                             checkbox checkbox = sender checkbox;         } 

i found out by:

checkbox.name.tostring()



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........