I have a bit of code thats not working and can not find out wy and dont get any error. I am trying to fill a gridview with a datatable from a viewstate. When I count the rows of the gridview it says it has 2 rows but on the webpage I can`t even see 1.
the code:
Dim dt As DataTable = DirectCast(ViewState("myData"), DataTable)
GridViewArtikelenSelected.DataSource = dt
GridViewArtikelenSelected.DataBind()
Dim test As Integer = GridViewArtikelenSelected.Rows.Count
Might be your GridView is in
UpdatePanel, which might be not refreshing after Binding of grid.