Hi,
My question is if this can be done to a bound grid. I have a cardview grid bound to a datasource, I only want two cards shown, The first card will be the last row in the datasource, but I want the second card to be bound to a row based on a selectable date in a dropdown. In order to accomplish that I need to set up some sort of binding context per card?
Thanks,
SS
Hi Sam,
There's no way to bind a single row.
But if you just want a grid that displays two cards, you could easily create a simple DataSource like UltraDataSource and then add two rows to it and bind it to the grid. You could then change the data in the second row to whatever you want at any time. So it's not exactly bound, but you could respond to some change and then populate each cell in the data row manually.
Thanks that helps, I can go that route.
Is there a way I could use column filters to create the subset of the cards I want to show?
Well, if you are creating a DataSource specifically for this grid, anyway, then you could just add 2 rows to it and there would be no need to filter.
But, if you want the data to have more rows in it and filter them, then yes, you can use the ColumnFilters to filter out rows based on the values in the cells.
If you can't base it on cell values, then I would recommend handling the InitializeRow event. You can simply examine the row and set the Hidden property as appropriate.