I need to add a new page to an existing website that is all written in ASP.NET Webforms. This new page is to have a search feature that will return records in the form of a grid. However, there is the added requirement that to the left of each row in the results set there will be an icon that the user can click on to expand and see more results. If the user clicks on that icon then a new results grid will appear immediately under that row of the original results grid. This secondary results grid will show different information (i.e. the number and names of the columns will be different) from the primary grid that comes from a separate data source. I have tried to illustrate this in the picture below (apologies for the crappy MSPaint skills)
So the Orange rows are the primary Grid Results and the Green are the secondary grid that only becomes apparent if the Green + icon to the left of the primary grid rows is clicked on.
I have a few questions:
- Is it possible to do something like this using existing Server Control objects in ASP.NET WebForms (like for example GridView objects)? I'd like to stick with WebForms if possible to keep it consistent with the rest of the project but I realise that that may not be possible.
- If not then what would be a good way of doing this? I am open to using, for example, client-side coding and Web API on the server side if needs be, to achieve this although I'm not 100% sure how to go about this.