I have been hiding a row in a WPF grid by setting the Height property to 0.
I was expecting something akin to a Visible property.
Is there a more appropriate way to hide the row?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could set the visibility of the row’s content to “Collapsed”. This will only work if the Height property of the RowDefinition is set to “Auto” so the row sizes based on it’s content.
For example,