I'm using the 3 tier heirarchichal demo
based on a user click in a checkbox on my page, I want to filter the most inner grid specific to the user on the page
Right now my code here is doubling the ammount of info in the grid rather than filtering it, what am I doing wrong?
any help would be appreciated
based on a user click in a checkbox on my page, I want to filter the most inner grid specific to the user on the page
| Protected Sub CheckBox_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) |
| Dim whereclause As New StringBuilder |
| If CheckBox.Checked = True Then |
| whereclause.Append(" where PersonId = " + Session("PersonnelID").ToString + "") |
| Else |
| End If |
| Dim selectclause As New StringBuilder("SELECT * FROM [Stuff]") |
| Me.SqlDataSource3.SelectCommand = selectclause.ToString & whereclause.ToString |
| Me.SqlDataSource3.Select(New System.Web.UI.DataSourceSelectArguments) |
| Radgrid1.Rebind |
| End Sub |
Right now my code here is doubling the ammount of info in the grid rather than filtering it, what am I doing wrong?
any help would be appreciated