Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
How to Fire an Unbounded xamGrid Button Object
posted

I created an unbounded column and add a button to it.  But when I clicked the button, then event below did not fire!  What am I missing?

         <ig:XamGrid.Columns>
                <ig:UnboundColumn  Key="Edit" HeaderText="Edit" HorizontalContentAlignment="Center">
                    <ig:UnboundColumn.ItemTemplate>                       
                        <DataTemplate>
                            <Button Content="Edit" Name="btnEditData" />
                        </DataTemplate>
                    </ig:UnboundColumn.ItemTemplate>
                </ig:UnboundColumn>
             </ig:XamGrid>

    Private Sub btnEditData_Click(ByVal sender As System.Object, ByVal e As  System.Windows.RoutedEventArgs) Handles btnEditData.Click
       messagebox.show("This button fires")
    End Sub