I've found a lot of different examples on the internet, but nothing seems to do what I'm after.
I have a DB view that generates something like this:
--------------------------------------------------- Company | Code | Total | Available | Used | Needed --------------------------------------------------- One | 1 | 10 | 8 | 2 | 3 One | 2 | 5 | 5 | 0 | 5 Two | 1 | 5 | 2 | 3 | 0 Two | 2 | 8 | 4 | 4 | 9 Two | 3 | 0 | 0 | 0 | 0 ---------------------------------------------------
But I'm really after something to summarise all the rows by Company, and be able to expand to view details as needed.
Similar to:
------------------------------------------------------ Company | Total | Available | Used | Needed ------------------------------------------------------ [+] One | 15 | 13 | 2 | 8 ------------------------------------------------------ [-] Two Code | 13 | 6 | 7 | 9 ------------------------------------------------------ | 1 | 5 | 2 | 3 | 0 | 2 | 8 | 4 | 4 | 9 | 3 | 0 | 0 | 0 | 0 ------------------------------------------------------
I've tried building a gridview within a gridview to poor result.
I have a view which generates the companys and the summary information if it can't be done with JavaScript which is how I assumed it could be done.
I'm just looking for a free control or some bright idea in how I can otherwise accomplish this. New to ASP.NET so there might be something simple I'm missing.
Thanks