In SfDataGrid, you can hide the rows based on some condition by using QueryRowHeight event.
The following code example explains how to hide the rows based on condition by setting e.Height to zero.
When you need to hide/unhide a row at the run time, you can trigger QueryRowHeight event only for particular row by calling SfDataGrid.InvalidateRowHeight and VisualContainer.InvalidateMeasureInfo methods.
RowValidating event is triggered while editing a particular row. So that you can change the RowHeight based on edited values by calling SfDataGrid.InvalidateRowHeight and VisualContainer.InvalidateMeasureInfo methods.
You can bring the items which are hidden into View when property value changes by invalidating the row height by handling RecordPropertyChanged event.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|