PC Review


Reply
Thread Tools Rate Thread

Configure Data Source Wizard

 
 
rodchar
Guest
Posts: n/a
 
      12th Jan 2008
hey all,
i'm manually adding my items to my dropdownlist that will filter the
gridview under it.

i go thru the Configure Data Source Wizard on the gridview in which i
specify the dropdownlist control value to be the filter in my WHERE clause.

it works fine except i don't know how to get the NULL records to show up. is
it possible to specify a NULL item when manually adding items to my
dropdownlist?

thanks,
rodchar
 
Reply With Quote
 
 
 
 
Chad Scharf
Guest
Posts: n/a
 
      14th Jan 2008
When you are manually adding items to your DropDownList, simply use:

MyDropDownListControl.Items.Add(string.Empty);

Or in your Markup, <asp:ListItem Value="" Text="" />

Then in your configure data source wizard, for that control you can specify
the DefaultValue="" or leave it blank, then set the
ConvertEmptyStringToNull="True".

This will place a blank item in your select list in the rendered HTML, as
well as set the value for the parameter to NULL when the blank option is
selected for your data source control.

Hope this helps.

Thanks,

--
Chad Scharf
_______________________________
http://www.chadscharf.com


"rodchar" wrote:

> hey all,
> i'm manually adding my items to my dropdownlist that will filter the
> gridview under it.
>
> i go thru the Configure Data Source Wizard on the gridview in which i
> specify the dropdownlist control value to be the filter in my WHERE clause.
>
> it works fine except i don't know how to get the NULL records to show up. is
> it possible to specify a NULL item when manually adding items to my
> dropdownlist?
>
> thanks,
> rodchar

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing:Data Connection Wizard Doesn't see Source Data - No Impo Exotic Hadron Microsoft Excel Misc 0 1st Oct 2008 07:35 PM
Business Object doesn't appear in Configure Data Source Bobby Edward Microsoft ASP .NET 1 17th Sep 2008 11:55 PM
ASP 2: Q. on Configure Data Source Wizard David Microsoft ASP .NET 0 21st Jan 2007 06:26 AM
cannot configure data adapter through wizard monika Microsoft ASP .NET 0 24th Jun 2005 10:57 AM
Configure Data Adapter Wizard Failing Jeff Dillon Microsoft ADO .NET 1 4th Nov 2004 08:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 AM.