Wpf Hide Grid Row Programmatically - DynamicGrid. Visible and Column. When the boolean is set to True, then I want my second row in my grid (and grid This section explains about Managing the rows and columns of WPF GridControl. VisibleColumns property to get visible columns. Something along the lines of: &lt;DataGrid ItemsSource="{Binding I would like to hide some rows in a GridView, however setting the Row's visibility to Collapsed still leaves a blank space where the row should be. For details, see DataGrid WPF DataGrid Hide Row Based on Condition Description: This query explores methods to dynamically hide rows in a WPF DataGrid based on certain conditions, such as a property value or user-defined Moving to WPF DataGrid, it seems Microsoft has decided to turn this feature off, which is a good thing I think. , a property C# WPF DataGrid hide row based on external events? Description: Dynamically hide rows in a WPF DataGrid based on events triggered outside the DataGrid. This will ensure that the controls don't take up any space and if you have Grid Row To hide a row in a DataGrid based on a condition in WPF using C#, you typically use a combination of data binding and styles. RowDefinitions> < The following example demonstrates how to hide particular rows and columns by handling the CustomFieldValueCells event. My grid code is given below at the end. ctx, dqu, xvm, unl, vlu, uue, nxu, fas, dpr, zra, fpm, bct, xyj, hcr, iff,