Click here to Skip to main content


QuestionFiltering in header Pinmemberbyka19-Sep-12 2:40 
AnswerRe: Filtering in header PinmvpSandeep Mewara19-Sep-12 10:30 
Based on the code, it looks like a dropdownlist does exists from before. In the RowDataBound event you are trying to populate data in that pre-existing dropdown. Since, it pre-exists, you can define a selected change index for it.
In case you want to define it at runtime in RowDataBound, then you need to add this:
AddHandler ddlFilter.SelectedIndexChanged, AddressOf Me.ddl2_SelectedIndexChanged
ddlFilter.AutoPostBack = true
Private Sub ddlFilter_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
        'your code 
End Sub
Sandeep Mewara
Microsoft ASP.NET MVP
[My latest Article]: Server side Delimiters in ASP.NET[^]

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web02 | 2.8.150123.1 | Last Updated 24 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid