G
Guest
I have a rather complicated problem I need to sort out and wonder if anyone
can assist me.
The ingredients:
Two DropDownList Controls
One DataGrid
Purpose of Page:
User selects a menu using a DropDownList Control (DDLMenu). Depending on
the selection another DropDownList Control(DDLSection) appears revealing the
sub-selections available to DDLMenu. Once a selection is made with
DDLSection a DataGrid appears with the data that is available to the
selection in DDLSection. The user is able to edit the data in the DataGrid
by either pressing Delete or the Edit buttons in the datagrid as the user
would with any standard DataGrid.
Problem with the page:
When the user clicks on Edit or Delete on the DataGrid(dgCMS) Both
DropDownList selections are lost or one or the other is kept while the other
is lost. I believe the problem lies with rebinding the DropDownList to the
users' selection. If someone could be so kind to tell me or guide me in the
correct direction in maintaining the users selection on rebind or let me know
of a tutorial in C#. I would be truly greatful. Thank you in advance.
Sam-
can assist me.
The ingredients:
Two DropDownList Controls
One DataGrid
Purpose of Page:
User selects a menu using a DropDownList Control (DDLMenu). Depending on
the selection another DropDownList Control(DDLSection) appears revealing the
sub-selections available to DDLMenu. Once a selection is made with
DDLSection a DataGrid appears with the data that is available to the
selection in DDLSection. The user is able to edit the data in the DataGrid
by either pressing Delete or the Edit buttons in the datagrid as the user
would with any standard DataGrid.
Problem with the page:
When the user clicks on Edit or Delete on the DataGrid(dgCMS) Both
DropDownList selections are lost or one or the other is kept while the other
is lost. I believe the problem lies with rebinding the DropDownList to the
users' selection. If someone could be so kind to tell me or guide me in the
correct direction in maintaining the users selection on rebind or let me know
of a tutorial in C#. I would be truly greatful. Thank you in advance.
Sam-