I have a very simple scenario but poor experience in this area and googling around didn’t help much.
Consider a classic ASPX page with C# code behind. Let’s say I have a list of DataTables (or a DataSet with several tables). I need the means to display all tables using one DataGrid per table.
I tried binding entire DataSet to DataGrid but it displayed only the first table.
Something tells me I should be using a Repeater in conjunction with DataGrid but I need help with this or a totally different (better) alternative.
This is an example using dynamic controls:
ASPX
Code behind
Output:
Note that the view state of each grid is kept among post backs