Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / April 2006

Tip: Looking for answers? Try searching our database.

Reg: Showing default data in DropDownList

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sagaar - 17 Apr 2006 22:01 GMT
Hi

I have a datagrid with 2 DropDownList controls...I am binding data to these
controls on pageload event.

I wanted to show some default text in these controls like "Select Drodown1"
but this value is not present in dataset...

How can I add this to those controls in datagrid without adding that in
dataset??

Somebody was suggesting for Pre-Render...but no ides how to do that? any
ideas/pointers, snippets?

TIA

Rgads
sagarr
MS - 21 Apr 2006 13:42 GMT
Hi,
If you are using vs2003 then u can do it in Itemdatabound event od
datagrid/datalist

in item databound u need to find the dropdown control and then u can add
item to dropdow. what u want

Munawar Hussain
best of luck

> Hi
>
[quoted text clipped - 16 lines]
> Rgads
> sagarr

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.