Re: How filter dropdownlist data
- From: "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx>
- Date: Wed, 28 May 2008 17:40:01 +0300
You can handle ddl's DataBound or PreRender or Page.PreRender event to
remove items from the ddl's Items collection.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Cirene" <cirene@xxxxxxxxxxx> wrote in message
news:ugHvW5MwIHA.4896@xxxxxxxxxxxxxxxxxxxxxxx
I already have it bound to a sqldatasource and it's getting data. That's
no problem.
There are certain conditions where I want to PREVENT some selected items
from appearing in the drop down list. Any ideas on how to do this?
Thanks!
"Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx> wrote in
message news:ej%23hFyMwIHA.548@xxxxxxxxxxxxxxxxxxxxxxx
If the query populates a DataTable, you can run Select method with a
filter condition to produce a filtered array of rows.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Cirene" <cirene@xxxxxxxxxxx> wrote in message
news:%23QUUxpMwIHA.4476@xxxxxxxxxxxxxxxxxxxxxxx
I have a dropdownlist that is bound to a query.
Is it possible to further filter the items after the fact?
The dropdownlist is inside a
createuserwizard/createuserstep/contenttemplatecontainer.
Thanks.
.
- Follow-Ups:
- Re: How filter dropdownlist data
- From: Cirene
- Re: How filter dropdownlist data
- References:
- How filter dropdownlist data
- From: Cirene
- Re: How filter dropdownlist data
- From: Eliyahu Goldin
- Re: How filter dropdownlist data
- From: Cirene
- How filter dropdownlist data
- Prev by Date: Re: Compiler catches warning really late
- Next by Date: Re: webpage has expired after file upload
- Previous by thread: Re: How filter dropdownlist data
- Next by thread: Re: How filter dropdownlist data
- Index(es):
Relevant Pages
|