Gridview binding issue
-
I am trying to bind a nested gridview in a loop. But what happens is I get only the last record on the grid. Rest all previous records get disappear. for example: for 1 = 1 to 10 ResultsDataGrid.DataSource = Results; ResultsDataGrid.DataBind(); In this case I only see the 10 th record. Please suggest or guide
Regards, Pavas
-
I am trying to bind a nested gridview in a loop. But what happens is I get only the last record on the grid. Rest all previous records get disappear. for example: for 1 = 1 to 10 ResultsDataGrid.DataSource = Results; ResultsDataGrid.DataBind(); In this case I only see the 10 th record. Please suggest or guide
Regards, Pavas
Why use a loop ??!! Just Bind directly
ResultsDataGrid.DataSource = Results;
ResultsDataGrid.DataBind();foreach(Minute m in MyLife) myExperience++;
-
Why use a loop ??!! Just Bind directly
ResultsDataGrid.DataSource = Results;
ResultsDataGrid.DataBind();foreach(Minute m in MyLife) myExperience++;