Hello,
We're building a reporting/excel export feature using the SF WebForms Grid. Our end users will choose the columns, sorting and filtering criteria they want in their Excel file.
We're currently grabbing data via Linq2SQL which has quite a few columns and thousands of unique rows (considering all columns) and binding it to the grid.
Because of the nature of the source of the data (relational), when we only select subsets of columns, the visible data now has potentially many duplicates.
Question: Is there a way to have the Grid render (and also export) only the unique rows after column selection and filtering?
Example:
Take a hypothetical data set with 6 unique rows like this:
If I choose both columns, this is what I might see.
User ProductCode
1 Bus
1 Car
2 Bus
3 Bus
4 Car
4 Train
If I were to use the column chooser and only select the "User" column, I would want to see 4 rows:
User
1
2
3
4
If I were to use the column chooser and only select the "ProductCode" column, I would want to see only 3 rows:
ProductCode
Bus
Car
Train