Click here to Skip to main content
15,896,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to enable a button when my gridview has a row.
If I delete all rows from the gridview it should get disabled.
How do I achieve this in XAML
Posted
Comments
Alexander Dymshyts 19-Dec-13 4:27am    
what have you tried?
vivektp 19-Dec-13 4:56am    
I am new to WPF . I did not try anything

1 solution

If you want to change whether a control is enabled use:

okButton.IsEnabled = false; // disables the control
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900