Populate table with results from web service
Posted on 2010-09-22
I started using ASP .NET 2010 recently and I'm not familiar with all the controls and which one is the right one to use. Basically, I need to put the data comming from a web service into some kind of "table" such that:
1) each cell has an on-click event that can be handled (ie say each row has merchant name and merchant address, I want to be able to detect when a user selects a merchant and redirect the user to that merchant page)
2) the headers of the table can be clicked to handle sorting (ie for the above example i need to be able to tell which column header was clicked in order to do sorting on that column)
3) the table needs to be populated dynamically when the result comes back from the web service
I looked at listview but it seems that this has changed much from previous versions of ASP.NET. I don't know if gridview is a good choice either. Is there any component out there that can be used in this case?