I have a list view that is displaying data using the gridview. This list is displaying data typical of grid views. Lots of data displayed in rows and columns. However, on some rows I do not have any data to display, in the columns. I would like to swap out the item template for that row and display another template for the entire row that would display something like "blank row" or "empty row" for the text and also style the whole row not the individual cells.
I have been trying to use this post: http://cloudstore.blogspot.com/2008/06/creating-custom-view-mode-that-supports.html.
So I have a custom view for the list view. Basically, I have subclassed the GridView class and on the PrepareItems method override, I can select the new template that I want to display for a particular row or the default template. However, when I try to select a new template, the gridview will never render anything for that row. It will still render if I use the default template. I assume that the layout for a GridView is interfering with my setting of the template for the row I want to swap out. Is this possible or will I have to create a custom view that mimics the GridView and not subclass the GridView class? I would like to keep the columns the way they are without too much rework. Any suggestions or anyone have experience with this type of scenario?