Hi there, I have got a web-page with a grid view on it, initially there is no data source bound to the grid ... When I press a button, I want the datasource to be set, now I tried the following code but absolutely nothing happens ... where's the mistake that I'm making ... ?
where I say "Dim n as integer = Gridview1.Rows.Count", I just used that to see if there was infact any changes made and the grid was maybe invisible or something, but the count is 0 ...Code:Protected Sub ButtonSelectCourse_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonSelectCourse.Click Label1.Text = "RadioButton1" GridView1.DataSource = AccessDataSourceFDES1 GridView1.DataBind() GridView1.Visible = True Dim n As Integer = GridView1.Rows.Count End Sub




Reply With Quote