any bright ideas for button.enabled

G

Guest

hey all,

i have a web form that has 5 link buttons on it that are for record updates
(Edit, Cancel, Delete, New, Save). These buttons will serve 2 different
controls which are the formView and gridView (I know these come standard on
these controls, but please humor me).

I am trying to figure out the .Enabled property for each of these buttons
after one of these buttons are clicked.

I have many scenarios such as
what if the formView loads without a record (what will be the status of
..enabled for all buttons)
what if the fromView loads with a record and it has a 1 to 1 to Parent,
what if After a Save the record has a 1 to 1 relation to parent,
what if after a save the record is not a 1 to 1 relation to parent
after a delete, what should the .enabled be for all buttons
after new button is pressed
after cancel of new
many more...

and with all these scenarios i'm constantly enabling and disabling in the ui
layer and it's getting messy. any ideas on how to lesson the complexity?

thanks,
rodchar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top