#Not Updating SQL

1 messages · Page 1 of 1 (latest)

willow snow
#

i have a wpf with buttons that is connected to a page with the datagrid

sage geyserBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

#

@willow snow

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

modern gale
#

This is C# not C++

willow snow
#

i tried doing something like this in the mainwindow to get the data from the row

{
    for (int i = 0; i < VisualTreeHelper.GetChildrenCount(parent); i++)
    {
        DependencyObject child = VisualTreeHelper.GetChild(parent, i);
        if (child != null && child is T)
        {
            return (T)child;
        }
        else
        {
            T childItem = FindVisualChild<T>(child);
            if (childItem != null)
            {
                return childItem;
            }
        }
    }
    return null;
}

// Person Menu

private void person_click(object sender, RoutedEventArgs e)
{
    // Toggle visibility
    btnAdd.Visibility = btnAdd.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible;
    btnEdit.Visibility = btnEdit.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible;
    btnDelete.Visibility = btnDelete.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible;
    Main.Content = new personPage();
}

private void PersonPage_EditButton_Click(object sender, RoutedEventArgs e)
{
    personPage personPageInstance = FindVisualChild<personPage>(this);

    if (personPageInstance != null)
    {
        personPageInstance.EditBtn_Click(null, null);
    }
}```
modern gale
#

Again not C++

#

We have a partner C# server

willow snow
#

oh sorry mybad

modern gale
#

Look in #partners