#Not Updating SQL
1 messages · Page 1 of 1 (latest)
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!
This is C# not C++
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);
}
}```
oh sorry mybad
Look in #partners