In onselectchanged of dropdowlist you can write a code to filter your
datasource of datalist or datagrid corresponding to the selected item in
dropdownlist and then bind it to the datalist or datagrid . In ASP.NET 1.1
there is not direct way for doing this, but in ASP.NET 2.0 this is going to
be very simple. Wait and watch.
--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com
"New User" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
I have a xml file for datasource.e.g
<Persons>
<Person>
<Name>User1</Name>
<State>NJ</State>
</Person>
<Person>
<Name>User2</Name>
<State>WA</State>
</Person>
</Persons>
I have a dropdown list which I select a state from list.
Is such property or event in Datalist or DataGrid that
when I select e.g NJ as a state I would only display
<Person> data for just that state (Filter out).
Thank you in advance.