I seem to have a problem with mode changing when using my detailsview control. protected void Detail View_Mode Changing(object sender, Details View Mode Event Args e) Now, when I click on edit or insert and trace, the program hits the right event, but I have to hit the button twice for the control to change mode.
Even when it does change mode, regardless of which control I hit, the program will randomly decide if it is going to go into edit mode or update mode.
This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. At the bottom, it has them indexed by 1 2 3 4 5 6 7 8 9 10 ... Once you add the same key again using Insert, you get an error. I have to click Edit and Cancel twice for them to do their action.The first and second click are calling the Mode Changing method so I assume there is something wrong with my code and the same with just B's code.Repeaters give you full control but typing the HTML yourself but I'd like to see if I can use the features of the controls to do what I need to do before moving to the repeater.Because then I have to code those extra features that the Grid View and Details View have that the repeater does not.