Displaying empty rows in datagrid

Apr 1, 2010 at 6:48 AM

Hi.  I'm pretty new in working in WPF and I have a requirement that I am trying to solve in my current project.  I have a datagrid, its height can fit 20 rows, but if I have only 3 records in my source collection it only renders 3 rows and a blank gray panel below it.  Is there a way to render a minimum 20 rows in my case 3 rows that are filled and 17 rows that are empty so it fills the entire datagrid?

Thanks in advance.