You need to sign in to do that
Don't have an account?
sujin h s
How to display the data in table grouped by 1st column?
Hi all,
I have data returned from query. For eg:
How to display the data in table like:
I have to filter the rest of the column based on the data of 1st column.
Thank! in advance.
I have data returned from query. For eg:
Col 1 | Col 2 |
R1 | Data 1 |
R1 | Data 2 |
R2 | Data 3 |
R2 | Data 4 |
R1 | Data 5 |
How to display the data in table like:
Col 1 | Col 2 |
R1 | Data 1 |
Data 2 | |
Data 5 ------------------ | |
R2 | Data 3 |
Data 4 |
I have to filter the rest of the column based on the data of 1st column.
Thank! in advance.
In order to display data in the required format, we may have multiple approaches. One of the effective ways is to filter your records and make a wrapper class at the server-side so that you can easily store the data into the required format. Then you just need to iterate that wrapper on the UI using HTML <table> tag.
I hope you find the above solution helpful. If it does, please mark it as Best Answer to help others too.
Thanks and Regards,
Sachin Arora
www.sachinsf.com