B
brianflanagan
Hi all,
Please forgive if this has been answered before, but I haven't been
able to find the solution. I'm working on a project for school that
will use a dropdownlist populated by data from a database. The
dropdownlist will use the onselectedindexchanged event to trigger a
subroutine that will populate a datagrid based on the selected item in
the dropdownlist.
I've got the dropdownlist and the sub to handle populating the
datagrid, but one other aspect of the problem is that all items are to
fire the event that loads the datagrid. The challenge is to have the
event fire when the first item is selected. But by default, the first
item of a datagrid is already selected and clicking on it won't fire
the onselectedidexchanged event. According to the instructor, "this
can be easily accomplished with one line of code, but it was not
covered during the course."
I've been scanning the web and all my books, but can't figure it out.
Any suggestions would be most appreciated...
Please forgive if this has been answered before, but I haven't been
able to find the solution. I'm working on a project for school that
will use a dropdownlist populated by data from a database. The
dropdownlist will use the onselectedindexchanged event to trigger a
subroutine that will populate a datagrid based on the selected item in
the dropdownlist.
I've got the dropdownlist and the sub to handle populating the
datagrid, but one other aspect of the problem is that all items are to
fire the event that loads the datagrid. The challenge is to have the
event fire when the first item is selected. But by default, the first
item of a datagrid is already selected and clicking on it won't fire
the onselectedidexchanged event. According to the instructor, "this
can be easily accomplished with one line of code, but it was not
covered during the course."
I've been scanning the web and all my books, but can't figure it out.
Any suggestions would be most appreciated...