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
We are having a similar issue and need to display n rows on screen at all times. When we apply a strict filter using RecordFilter feature, only one or two rows have the filtered result as expected but we need the other rows to be displayed on the screen even if there is no data. They should be non-editable and we would not be able to add dummy record in the collection as per your earlier suggeation. We are using version Infragistics Wpf 10.3
Attaching the sample project.
Sorry, I could not open the zip file error "Cannot open file: it does not appear to be a valid archive".
Anothe issue with adding dummy rows is my summary field in the bottom of the grid will show record count based on the item in the collection. This will incorrectly show the count of empty cell. I am still trying to push back to design team to change the requirement. If the requirement hold good, then I may have to do this tweeking when no rows result of filtering. Filtertering done by built in infragisitic feature, since this is done at VIEW layer, then I have two write code at VIEW, also at VIEWMODEL at some instance.
Any way thank you for your help, if you could make the zip file available, I will have a look at it before making final decision.
Hi,
Per your requirement to show number of records based on the grid's height you may download the testpagination project from this link. In case you need an empty rows then you can just put some dummy items in the collection. Note that you don't have to handle some of the selection or editing events to update the data since it would be done automatically when you change a cell value.
HTH,
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.