Connecting Tech Pros Worldwide Forums | Help | Site Map

Asp.net 2.0 DropdownList & Gridview

Newbie
 
Join Date: Jan 2008
Posts: 1
#1: Jan 10 '08
Hiiiiiiii,

can u guide me on how to Populate data in GridView on the basis of selection made in a Dropdown list.

Like 1st the user will select an item from dropdown & the GridView should show on that data which is releted to the value selected by user in Dropdown & all other rows should not be displayed

Plz rpl

silkster's Avatar
Newbie
 
Join Date: Jan 2008
Location: Washington, DC
Posts: 1
#2: Jan 10 '08

re: Asp.net 2.0 DropdownList & Gridview


Go here http://asp.net/ajax/ and watch the video titled: "ASP.NET AJAX: A demonstration of ASP.NET AJAX".

This video shows you exactly how to populate a GridView by selecting an option from a DropDownList. It goes on to show you how to use AJAX with the example, but it is very clear how to do exactly what you asked. The only difference would be that the project template you will probably use to create your application is the standard ASP.Net Web Site or Windows Form.
Needs Regular Fix
 
Join Date: Jul 2006
Location: India,Hyderabad
Posts: 367
#3: Jan 11 '08

re: Asp.net 2.0 DropdownList & Gridview


Quote:

Originally Posted by silkster

Go here http://asp.net/ajax/ and watch the video titled: "ASP.NET AJAX: A demonstration of ASP.NET AJAX".

This video shows you exactly how to populate a GridView by selecting an option from a DropDownList. It goes on to show you how to use AJAX with the example, but it is very clear how to do exactly what you asked. The only difference would be that the project template you will probably use to create your application is the standard ASP.Net Web Site or Windows Form.

Hello

If you want to retrive data in combo change event first make your combobox auto postback property to true then write you query for data retriving in combo select change event fill dataset with that data and bind it to data grid thats all nothing to do..

Regards
Nmsreddy
Reply