I have a grid bound to a property in my ViewModel. I need to find out a setting or code to make empty grid rows to appear when no row exists for grid. We are using WPF Infragistic 9.2 version.
Any simple setting or we need to write a empty template? Any samples?
Thanks
In case you bind the grid to an empty collection exposed in your viewmodel, you can just add one dummy item and the grid will create an empty row. In addition, you can enable the add new row functionality of the grid by setting AddNewRow to true. Note that in order the row to appear you would need your collection to impelement IBindingList
This approach will result in additional code to other evet handlers (like SelectedEventChangedCommand, SelectedEventChangingCommand). Also enabling add new row is not a good idea.
Our design requirement is not to show just one record, more than one record up to the height set for each grid.
Looks like I may have to write addtional code to draw empty rows. I will also suggest just to draw border around it, this will give show the boundary of the grid presense.
Any other solutions are welcome.