Click here to Skip to main content
15,909,896 members

Comments by Jo_vb.net (Top 150 by date)

Jo_vb.net 5 days ago View    
Deleted
with btnUnload_Click

try to add
bmi = null;
Jo_vb.net 5 days ago View    
On website from Dave's link, there is another link
To see an example of how the Person class can be used to support TwoWay binding, see
Control When the TextBox Text Updates the Source.
https://learn.microsoft.com/en-us/dotnet/desktop/wpf/data/how-to-control-when-the-textbox-text-updates-the-source?view=netframeworkdesktop-4.8

Look for "UpdateSourceTrigger"

<textbox>
<textbox.text>
<binding source="{StaticResource myDataSource}" path="Name"
UpdateSourceTrigger="PropertyChanged">

Jo_vb.net 5 days ago View    
Good to know, thank you.
Jo_vb.net 26-May-24 13:49pm View    
Your link shows:

public string PersonName
{
get { return name; }
set
{
name = value;
// Call OnPropertyChanged whenever the property is updated
OnPropertyChanged();
}
}

Just for me to understand:

Why don't they use
OnPropertyChanged("PersonName");
Jo_vb.net 22-May-24 9:48am View    
recheck result is => there is no bindable property for actual row height if default RowHeight == NaN !

You could only play around with code behind like the SO link shows:
https://stackoverflow.com/questions/55792661/wpf-how-to-get-height-of-each-row-in-datagrid