ASP.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a ASP.NET Expert!

Join 300,579 ASP.NET Programmers for FREE! Get instant access to thousands of ASP.NET experts, tutorials, code snippets, and more! There are 2,224 people online right now. Registration is fast and FREE... Join Now!




show data in a listbox

 

show data in a listbox

tony_inaty

15 Jun, 2009 - 05:17 PM
Post #1

New D.I.C Head
*

Joined: 15 Jun, 2009
Posts: 7

i know i can't ask a question to give me the code but i can't find out how to show items in a list box by clicking on select in the grid view

User is offlineProfile CardPM
+Quote Post


Jayman

RE: Show Data In A Listbox

15 Jun, 2009 - 06:48 PM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 8,544



Thanked: 226 times
Dream Kudos: 500
Expert In: Everything

My Contributions
When you click the Select button in a GridView, the SelectedIndexChanged event of the GridView is fired. In this event you can easily access the row which initiated the event and in turn any data you need.

You can find an example at the following page. However, you will need to implement your own logic to add the value from the selected row into the ListBox. Not a very difficult task.

GridView.SelectedIndexChanged

Give it a try and see what you come up with. If you get stuck, we are here to help.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 08:21AM

Live ASP.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

ASP.NET Tutorials

Reference Sheets

ASP.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month