changing gridview datasource (1 Viewer)

wazz

Super Moderator
Local time
Today, 15:54
Joined
Jun 29, 2004
Messages
1,711
i'm very new to .NET and c#...

in access it's pretty easy to change the rowsource of a listbox when the value of an option group changes. i'm trying to do the same in a webform but i'm not sure what to do.

i was able to update a gridview based on a value in a dropdownlist but in that case the datasource doesn't change.

so far i have a radiobuttonlist (no data source, just 'edit items') and a gridview but i don't know how to change the datasource in the grid when the selecteditem changes in the radiobuttonlist.

so far i'm using queries from an access db as datasources. (the .mdb is in the Apps folder).

i have three different queries that i would like to use, depending on the selection in the radiobuttonlist.

is this how i should approach this? any tips or references appreciated.
 

Users who are viewing this thread

Top Bottom